From 33f9324d79714892a6a4ae91733880f21754f8d7 Mon Sep 17 00:00:00 2001 From: bunsenstraat Date: Thu, 22 Aug 2024 09:35:48 +0200 Subject: [PATCH] wait for element --- apps/remix-ide-e2e/src/tests/dgit_local.test.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/apps/remix-ide-e2e/src/tests/dgit_local.test.ts b/apps/remix-ide-e2e/src/tests/dgit_local.test.ts index 105f6ea961..7cc791228d 100644 --- a/apps/remix-ide-e2e/src/tests/dgit_local.test.ts +++ b/apps/remix-ide-e2e/src/tests/dgit_local.test.ts @@ -317,6 +317,10 @@ module.exports = { }, 'switch back to master #group2': function (browser: NightwatchBrowser) { browser + .waitForElementVisible({ + selector: "//*[@data-id='branches-panel-content']//*[@data-id='branches-toggle-branch-master']", + locateStrategy: 'xpath', + }) .click({ selector: "//*[@data-id='branches-panel-content']//*[@data-id='branches-toggle-branch-master']", locateStrategy: 'xpath',