From 73a2b3893e4046629bf87f873a80f31f7eaa3a64 Mon Sep 17 00:00:00 2001 From: Pedro Amorim Date: Wed, 8 Mar 2023 18:37:36 +0000 Subject: [PATCH] Bug 33066: Fix agreements and licenses cypress tests --- t/cypress/integration/Agreements_spec.ts | 3 +-- t/cypress/integration/Licenses_spec.ts | 1 - 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/t/cypress/integration/Agreements_spec.ts b/t/cypress/integration/Agreements_spec.ts index b983545954..5fb812dfa9 100644 --- a/t/cypress/integration/Agreements_spec.ts +++ b/t/cypress/integration/Agreements_spec.ts @@ -515,7 +515,7 @@ describe("Agreement CRUD operations", () => { statusCode: 500, error: "Something went wrong", }); - cy.contains("Accept").click(); + cy.contains("Yes, delete").click(); cy.get("main div[class='dialog alert']").contains( "Something went wrong: Error: Internal Server Error" ); @@ -563,7 +563,6 @@ describe("Agreement CRUD operations", () => { cy.get('#agreements_show .action_links .fa-trash').click(); cy.get(".dialog.alert.confirmation h1").contains("remove this agreement"); cy.contains("Yes, delete").click(); - cy.get("main div[class='dialog message']").contains("Agreement").contains("deleted"); //Make sure we return to list after deleting from show cy.get("#agreements_list table tbody tr:first") diff --git a/t/cypress/integration/Licenses_spec.ts b/t/cypress/integration/Licenses_spec.ts index 628417aa18..8879151828 100644 --- a/t/cypress/integration/Licenses_spec.ts +++ b/t/cypress/integration/Licenses_spec.ts @@ -309,7 +309,6 @@ describe("License CRUD operations", () => { cy.get('#licenses_show .action_links .fa-trash').click(); cy.get(".dialog.alert.confirmation h1").contains("remove this license"); cy.contains("Yes, delete").click(); - cy.get("main div[class='dialog message']").contains("License").contains("deleted"); //Make sure we return to list after deleting from show cy.get("#licenses_list table tbody tr:first") -- 2.30.2