From 780d423d2dc747a8e5dc6b90fdd38ca285bb2689 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Fri, 5 Apr 2024 14:56:57 +0200 Subject: [PATCH] Bug 35392: Use the same selector as everywhere else for .message Signed-off-by: Jonathan Druart Signed-off-by: Katrin Fischer (cherry picked from commit 37a992365cfd2bf85ae5643572b63993006b4412) Signed-off-by: Fridolin Somers --- t/cypress/integration/ERM/DataProviders_spec.ts | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/t/cypress/integration/ERM/DataProviders_spec.ts b/t/cypress/integration/ERM/DataProviders_spec.ts index 06e3fa6597..1f80f6ca78 100644 --- a/t/cypress/integration/ERM/DataProviders_spec.ts +++ b/t/cypress/integration/ERM/DataProviders_spec.ts @@ -636,9 +636,8 @@ describe("Data provider tab options", () => { cy.get("#files > form > fieldset > input[type=submit]").click(); - cy.get( - "#erm > div > div.main.container-fluid > div > div.col-sm-10.col-sm-push-2 > main > div.dialog.message > li" - ).contains( + cy.get("main div[class='dialog message']").should( + "have.text", "Job for uploaded file has been queued. Check job progress." ); }); @@ -742,9 +741,8 @@ describe("Data providers action buttons", () => { cy.get(".dayContainer").contains(new RegExp("^1$")).click(); }); cy.get("#accept_modal").click(); - cy.get( - "#erm > div > div.main.container-fluid > div > div.col-sm-10.col-sm-push-2 > main > div.dialog.message > li" - ).contains( + cy.get("main div[class='dialog message']").should( + "have.text", "Job for report type TR_J1 has been queued. Check job progress." ); }); @@ -780,9 +778,8 @@ describe("Data providers action buttons", () => { .contains("Test") .click(); cy.wait("@test-connection"); - cy.get( - "#erm > div > div.main.container-fluid > div > div.col-sm-10.col-sm-push-2 > main > div.dialog.message" - ).contains( + cy.get("main div[class='dialog message']").should( + "have.text", "Harvester connection was successful for usage data provider " + dataProvider.name ); -- 2.39.5