From 43f19fb9f7979d2694e56103b86dca32124990b4 Mon Sep 17 00:00:00 2001 From: bunsenstraat Date: Mon, 2 Sep 2024 15:35:26 +0200 Subject: [PATCH] fix test --- apps/remixdesktop/test/tests/app/git-ui.test.ts | 3 +++ apps/remixdesktop/test/tests/app/git-ui_3.test.ts | 1 + apps/remixdesktop/test/tests/app/git-ui_4.test.ts | 1 + 3 files changed, 5 insertions(+) diff --git a/apps/remixdesktop/test/tests/app/git-ui.test.ts b/apps/remixdesktop/test/tests/app/git-ui.test.ts index 9977a7a656..f9525f122e 100644 --- a/apps/remixdesktop/test/tests/app/git-ui.test.ts +++ b/apps/remixdesktop/test/tests/app/git-ui.test.ts @@ -56,6 +56,8 @@ const tests = { 'Update settings for git #group1 #group2 #group3': function (browser: NightwatchBrowser) { browser. clickLaunchIcon('dgit') + .waitForElementVisible('*[data-id="github-panel"]') + .click('*[data-id="github-panel"]') .setValue('*[data-id="gitubUsername"]', 'git') .setValue('*[data-id="githubEmail"]', 'git@example.com') .click('*[data-id="saveGitHubCredentials"]') @@ -70,6 +72,7 @@ const tests = { .addFile('test.txt', { content: 'hello world' }, 'README.md') .clickLaunchIcon('dgit') .pause(1000) + .click('*[data-id="sourcecontrol-panel"]') .waitForElementVisible({ selector: "//*[@data-status='new-untracked' and @data-file='/test.txt']", locateStrategy: 'xpath' diff --git a/apps/remixdesktop/test/tests/app/git-ui_3.test.ts b/apps/remixdesktop/test/tests/app/git-ui_3.test.ts index 6032bb3660..f8ca6032b8 100644 --- a/apps/remixdesktop/test/tests/app/git-ui_3.test.ts +++ b/apps/remixdesktop/test/tests/app/git-ui_3.test.ts @@ -68,6 +68,7 @@ const tests = { .addFile('test.txt', { content: 'hello world' }, 'README.md') .clickLaunchIcon('dgit') .pause(1000) + .click('*[data-id="sourcecontrol-panel"]') .waitForElementVisible({ selector: "//*[@data-status='new-untracked' and @data-file='/test.txt']", locateStrategy: 'xpath' diff --git a/apps/remixdesktop/test/tests/app/git-ui_4.test.ts b/apps/remixdesktop/test/tests/app/git-ui_4.test.ts index 00c2afa35e..7d9dab06d2 100644 --- a/apps/remixdesktop/test/tests/app/git-ui_4.test.ts +++ b/apps/remixdesktop/test/tests/app/git-ui_4.test.ts @@ -70,6 +70,7 @@ const tests = { .addFile('test.txt', { content: 'hello world' }, 'README.md') .clickLaunchIcon('dgit') .pause(1000) + .click('*[data-id="sourcecontrol-panel"]') .waitForElementVisible({ selector: "//*[@data-status='new-untracked' and @data-file='/test.txt']", locateStrategy: 'xpath'