From dd8ba0e72631bd0ff4929762ca44ef5133f08c42 Mon Sep 17 00:00:00 2001 From: bunsenstraat Date: Tue, 29 Oct 2024 10:36:15 +0100 Subject: [PATCH] test error msg --- apps/remix-ide-e2e/src/tests/runAndDeploy_injected.test.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/apps/remix-ide-e2e/src/tests/runAndDeploy_injected.test.ts b/apps/remix-ide-e2e/src/tests/runAndDeploy_injected.test.ts index 74cb271761..e32565e252 100644 --- a/apps/remix-ide-e2e/src/tests/runAndDeploy_injected.test.ts +++ b/apps/remix-ide-e2e/src/tests/runAndDeploy_injected.test.ts @@ -109,6 +109,10 @@ const tests = { .waitForElementVisible('*[data-id="udappNotifyModalDialogModalBody-react"]', 60000) .click('[data-id="udappNotify-modal-footer-cancel-react"]') .saveScreenshot('./reports/screenshots/metamask_8.png') + .waitForElementVisible({ + locateStrategy: 'xpath', + selector: "//span[@class='text-log' and contains(text(), 'errored')]" + }) },