From 8f8dac306ed7a66e693e202f8e24b702e9ac81cc Mon Sep 17 00:00:00 2001 From: "davidzagi93@gmail.com" Date: Thu, 9 Sep 2021 02:38:41 +0100 Subject: [PATCH] added waitForElementVisible in workspace test --- apps/remix-ide-e2e/src/tests/workspace.test.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/remix-ide-e2e/src/tests/workspace.test.ts b/apps/remix-ide-e2e/src/tests/workspace.test.ts index f1cea8d6d1..8b858ce0de 100644 --- a/apps/remix-ide-e2e/src/tests/workspace.test.ts +++ b/apps/remix-ide-e2e/src/tests/workspace.test.ts @@ -48,7 +48,8 @@ module.exports = { .waitForElementVisible('*[data-id="modalDialogCustomPromptTextCreate"]') // eslint-disable-next-line dot-notation .execute(function () { document.querySelector('*[data-id="modalDialogCustomPromptTextCreate"]')['value'] = 'workspace_name_1' }) - .click('[data-id="workspacesModalDialogModalDialogModalFooter-react"] > span') + .waitForElementVisible('span[data-id="workspacesModalDialog-modal-footer-ok-react"]') + .click('span[data-id="workspacesModalDialog-modal-footer-ok-react"]') .waitForElementVisible('*[data-id="treeViewLitreeViewItemtests"]') .pause(5000) .waitForElementNotPresent('*[data-id="treeViewLitreeViewItemtest.sol"]')