From 3f7d49ba32ff63e0c38e89f4e3d92d1f7087479c Mon Sep 17 00:00:00 2001 From: "davidzagi93@gmail.com" Date: Thu, 9 Sep 2021 01:57:08 +0100 Subject: [PATCH] moved test some steps up --- 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 200f73d1e0..f1cea8d6d1 100644 --- a/apps/remix-ide-e2e/src/tests/workspace.test.ts +++ b/apps/remix-ide-e2e/src/tests/workspace.test.ts @@ -35,9 +35,10 @@ module.exports = { .clickLaunchIcon('filePanel') .click('*[data-id="workspaceCreate"]') // create workspace_name .waitForElementVisible('*[data-id="modalDialogCustomPromptTextCreate"]') + .waitForElementVisible('[data-id="workspacesModalDialogModalDialogModalFooter-react"] > span') // eslint-disable-next-line dot-notation .execute(function () { document.querySelector('*[data-id="modalDialogCustomPromptTextCreate"]')['value'] = 'workspace_name' }) - .waitForElementVisible('[data-id="workspacesModalDialogModalDialogModalFooter-react"] > span') + .pause(1000) .click('span[data-id="workspacesModalDialog-modal-footer-ok-react"]') .waitForElementVisible('*[data-id="treeViewLitreeViewItemtests"]') .pause(1000)