diff --git a/apps/remixdesktop/test/tests/app/git-ui.test.ts b/apps/remixdesktop/test/tests/app/git-ui.test.ts index 53139f4df0..85cdbf8693 100644 --- a/apps/remixdesktop/test/tests/app/git-ui.test.ts +++ b/apps/remixdesktop/test/tests/app/git-ui.test.ts @@ -11,7 +11,7 @@ let gitserver: ChildProcess / GROUP 3: file operations rename delete */ -module.exports = { +const tests = { before: function (browser: NightwatchBrowser, done: VoidFunction) { done() }, @@ -47,8 +47,8 @@ module.exports = { .windowHandles(function (result) { console.log(result.value) browser.switchWindow(result.value[1]) - .waitForElementVisible('*[data-id="treeViewLitreeViewItem.git"]') - }) + .waitForElementVisible('*[data-id="treeViewLitreeViewItem.git"]') + }) .waitForElementVisible('*[data-id="treeViewLitreeViewItemREADME.md"]') }, 'Update settings for git #group1 #group2 #group3': function (browser: NightwatchBrowser) { @@ -58,7 +58,7 @@ module.exports = { .setValue('*[data-id="githubEmail"]', 'git@example.com') .click('*[data-id="saveGitHubCredentials"]') .modalFooterOKClick('github-credentials-error') - + }, // GROUP 1 @@ -95,7 +95,7 @@ module.exports = { .pause(1000) .waitForElementVisible('*[data-id="sourcecontrol-panel"]') .click('*[data-id="sourcecontrol-panel"]') - + .waitForElementVisible('*[data-id="syncButton"]') .click('*[data-id="syncButton"]') .pause(2000) @@ -185,3 +185,7 @@ module.exports = { }, } +module.exports = { + ...process.platform.startsWith('linux') ? tests : {} +} + diff --git a/apps/remixdesktop/test/tests/app/git-ui_2.test.ts b/apps/remixdesktop/test/tests/app/git-ui_2.test.ts index 2187a844d4..7a176fee3e 100644 --- a/apps/remixdesktop/test/tests/app/git-ui_2.test.ts +++ b/apps/remixdesktop/test/tests/app/git-ui_2.test.ts @@ -11,7 +11,7 @@ let gitserver: ChildProcess / GROUP 3: file operations rename delete */ -module.exports = { +const tests = { before: function (browser: NightwatchBrowser, done: VoidFunction) { done() }, @@ -47,8 +47,8 @@ module.exports = { .windowHandles(function (result) { console.log(result.value) browser.switchWindow(result.value[1]) - .waitForElementVisible('*[data-id="treeViewLitreeViewItem.git"]') - }) + .waitForElementVisible('*[data-id="treeViewLitreeViewItem.git"]') + }) .waitForElementVisible('*[data-id="treeViewLitreeViewItemREADME.md"]') }, 'Update settings for git #group1 #group2 #group3': function (browser: NightwatchBrowser) { @@ -58,7 +58,7 @@ module.exports = { .setValue('*[data-id="githubEmail"]', 'git@example.com') .click('*[data-id="saveGitHubCredentials"]') .modalFooterOKClick('github-credentials-error') - + }, // GROUP 2 @@ -162,3 +162,6 @@ module.exports = { } } +module.exports = { + ...process.platform.startsWith('linux') ? tests : {} +} \ No newline at end of file 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 e65b9ef3cf..69478a795a 100644 --- a/apps/remixdesktop/test/tests/app/git-ui_3.test.ts +++ b/apps/remixdesktop/test/tests/app/git-ui_3.test.ts @@ -11,7 +11,7 @@ let gitserver: ChildProcess / GROUP 3: file operations rename delete */ -module.exports = { +const tests = { before: function (browser: NightwatchBrowser, done: VoidFunction) { done() }, @@ -47,8 +47,8 @@ module.exports = { .windowHandles(function (result) { console.log(result.value) browser.switchWindow(result.value[1]) - .waitForElementVisible('*[data-id="treeViewLitreeViewItem.git"]') - }) + .waitForElementVisible('*[data-id="treeViewLitreeViewItem.git"]') + }) .waitForElementVisible('*[data-id="treeViewLitreeViewItemREADME.md"]') }, 'Update settings for git #group1 #group2 #group3': function (browser: NightwatchBrowser) { @@ -58,7 +58,7 @@ module.exports = { .setValue('*[data-id="githubEmail"]', 'git@example.com') .click('*[data-id="saveGitHubCredentials"]') .modalFooterOKClick('github-credentials-error') - + }, 'check file added #group1 #group3': function (browser: NightwatchBrowser) { @@ -67,12 +67,7 @@ module.exports = { .clickLaunchIcon('dgit') .pause(1000) .waitForElementVisible({ - selector: "//*[@data-status='new-untracked' and @data-file='/test.txt']", - locateStrategy: 'xpath' - }) - .waitForElementVisible('*[data-id="addToGitChangestest.txt"]') - .pause(1000) - .click('*[data-id="addToGitChangestest.txt"]') + selector:module.exportsa-id="addToGitChangestest.txt"]') .waitForElementVisible({ selector: "//*[@data-status='added-staged' and @data-file='/test.txt']", locateStrategy: 'xpath' @@ -80,7 +75,7 @@ module.exports = { .setValue('*[data-id="commitMessage"]', 'testcommit') .click('*[data-id="commitButton"]') }, - + // group 3 'rename a file #group3': function (browser: NightwatchBrowser) { browser @@ -128,5 +123,8 @@ module.exports = { }, - } +} +module.exports = { + ...process.platform.startsWith('linux') ? tests : {} +}