linux tests

pull/4991/head
Your Name 4 months ago
parent b4ee7df0e7
commit 2fa11a570e
  1. 14
      apps/remixdesktop/test/tests/app/git-ui.test.ts
  2. 11
      apps/remixdesktop/test/tests/app/git-ui_2.test.ts
  3. 22
      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')
},
// 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 : {}
}

@ -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 : {}
}

@ -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 : {}
}

Loading…
Cancel
Save