From 52304a8d2277e317bcf4271d102175c33a33931c Mon Sep 17 00:00:00 2001 From: bunsenstraat Date: Tue, 3 Sep 2024 15:09:25 +0200 Subject: [PATCH] github test --- apps/remixdesktop/test/tests/app/git-ui_4.test.ts | 1 + apps/remixdesktop/test/tests/app/github.test.ts | 10 ++++++++-- 2 files changed, 9 insertions(+), 2 deletions(-) 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 1f084209a8..89c4099b67 100644 --- a/apps/remixdesktop/test/tests/app/git-ui_4.test.ts +++ b/apps/remixdesktop/test/tests/app/git-ui_4.test.ts @@ -58,6 +58,7 @@ const tests = { clickLaunchIcon('dgit') .waitForElementVisible('*[data-id="github-panel"]') .click('*[data-id="github-panel"]') + .pause(1000) .setValue('*[data-id="gitubUsername"]', 'git') .pause(1000) .setValue('*[data-id="githubEmail"]', 'git@example.com') diff --git a/apps/remixdesktop/test/tests/app/github.test.ts b/apps/remixdesktop/test/tests/app/github.test.ts index 50094a7389..d888f64889 100644 --- a/apps/remixdesktop/test/tests/app/github.test.ts +++ b/apps/remixdesktop/test/tests/app/github.test.ts @@ -26,7 +26,7 @@ const tests = { }, 'Update settings for git #group1 #group2': function (browser: NightwatchBrowser) { - browser.pause() + browser .clickLaunchIcon('dgit') .pause(1000) .waitForElementVisible('*[data-id="initgit-btn"]') @@ -108,10 +108,16 @@ const tests = { selector: '//*[@data-id="clone-panel-content"]//*[@data-id="clonebtn-ethereum/awesome-remix-master"]', locateStrategy: 'xpath' }) + .pause(5000) + .windowHandles(function (result) { + console.log(result.value) + browser.switchWindow(result.value[2]) + .pause(1000) + .waitForElementVisible('*[data-id="treeViewLitreeViewItem.git"]') + }) }, 'check if there is a README.md file #group1': function (browser: NightwatchBrowser) { browser - .clickLaunchIcon('filePanel') .waitForElementVisible('*[data-id="treeViewLitreeViewItemREADME.md"]') }, 'check the commands panel #group1': function (browser: NightwatchBrowser) {