From 7c38fd4160043fc3e5fce034fb803fb78dea87da Mon Sep 17 00:00:00 2001 From: Igor Braginsky Date: Wed, 30 Aug 2023 12:03:11 +0300 Subject: [PATCH] Fixed Jira connections - Interlinked test Signed-off-by: Igor Braginsky --- .../tests/administration/jira-connection/interlinked.test.ts | 4 +++- cypress/utils/utils.ts | 4 ++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/cypress/e2e/tests/administration/jira-connection/interlinked.test.ts b/cypress/e2e/tests/administration/jira-connection/interlinked.test.ts index a4d4957ab..e23f07583 100644 --- a/cypress/e2e/tests/administration/jira-connection/interlinked.test.ts +++ b/cypress/e2e/tests/administration/jira-connection/interlinked.test.ts @@ -92,6 +92,8 @@ describe(["@tier2"], "Jira connection negative tests", () => { getJiraCredentialData(CredentialType.jiraToken, !useTestingAccount) ); + jiraBearerCredentialInvalid.create(); + // Defining Jira Cloud connection data with incorrect credentials jiraCloudConnectionDataIncorrect = getJiraConnectionData( jiraBasicCredentialInvalid, @@ -135,7 +137,7 @@ describe(["@tier2"], "Jira connection negative tests", () => { }); }); - it("Bug MTA-991 | Validating error when Jira Stage Instance is not connected", () => { + it("Validating error when Jira Stage Instance is not connected", () => { /** Implements MTA-362 - Add JIRA instance with invalid credentials Automates https://issues.redhat.com/browse/MTA-991 diff --git a/cypress/utils/utils.ts b/cypress/utils/utils.ts index 13b7446ca..6749d3b22 100644 --- a/cypress/utils/utils.ts +++ b/cypress/utils/utils.ts @@ -153,10 +153,10 @@ export function submitForm(): void { } export function cancelForm(): void { - click(commonView.cancelButton); + clickJs(commonView.cancelButton); } -export function login(username?, password?: string, firstLogin = false): Chainable { +export function login(username?: string, password?: string, firstLogin = false): Chainable { /** * If the login method is explicitly called, it means that previous sessions are no longer required */