github test

desktop-master-git2
bunsenstraat 3 months ago
parent ceb43f07b9
commit ac99b52c4f
  1. 1
      apps/remixdesktop/test/tests/app/git-ui_4.test.ts
  2. 10
      apps/remixdesktop/test/tests/app/github.test.ts

@ -58,6 +58,7 @@ const tests = {
clickLaunchIcon('dgit') clickLaunchIcon('dgit')
.waitForElementVisible('*[data-id="github-panel"]') .waitForElementVisible('*[data-id="github-panel"]')
.click('*[data-id="github-panel"]') .click('*[data-id="github-panel"]')
.pause(1000)
.setValue('*[data-id="gitubUsername"]', 'git') .setValue('*[data-id="gitubUsername"]', 'git')
.pause(1000) .pause(1000)
.setValue('*[data-id="githubEmail"]', 'git@example.com') .setValue('*[data-id="githubEmail"]', 'git@example.com')

@ -26,7 +26,7 @@ const tests = {
}, },
'Update settings for git #group1 #group2': function (browser: NightwatchBrowser) { 'Update settings for git #group1 #group2': function (browser: NightwatchBrowser) {
browser.pause() browser
.clickLaunchIcon('dgit') .clickLaunchIcon('dgit')
.pause(1000) .pause(1000)
.waitForElementVisible('*[data-id="initgit-btn"]') .waitForElementVisible('*[data-id="initgit-btn"]')
@ -108,10 +108,16 @@ const tests = {
selector: '//*[@data-id="clone-panel-content"]//*[@data-id="clonebtn-ethereum/awesome-remix-master"]', selector: '//*[@data-id="clone-panel-content"]//*[@data-id="clonebtn-ethereum/awesome-remix-master"]',
locateStrategy: 'xpath' 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) { 'check if there is a README.md file #group1': function (browser: NightwatchBrowser) {
browser browser
.clickLaunchIcon('filePanel')
.waitForElementVisible('*[data-id="treeViewLitreeViewItemREADME.md"]') .waitForElementVisible('*[data-id="treeViewLitreeViewItemREADME.md"]')
}, },
'check the commands panel #group1': function (browser: NightwatchBrowser) { 'check the commands panel #group1': function (browser: NightwatchBrowser) {

Loading…
Cancel
Save