|
|
@ -60,6 +60,7 @@ module.exports = { |
|
|
|
browser. |
|
|
|
browser. |
|
|
|
addFile('test.txt', { content: 'hello world' }, 'README.md') |
|
|
|
addFile('test.txt', { content: 'hello world' }, 'README.md') |
|
|
|
.clickLaunchIcon('dgit') |
|
|
|
.clickLaunchIcon('dgit') |
|
|
|
|
|
|
|
.pause(3000) |
|
|
|
.click('*[data-id="sourcecontrol-panel"]') |
|
|
|
.click('*[data-id="sourcecontrol-panel"]') |
|
|
|
.waitForElementVisible({ |
|
|
|
.waitForElementVisible({ |
|
|
|
selector: "//*[@data-status='new-untracked' and @data-file='/test.txt']", |
|
|
|
selector: "//*[@data-status='new-untracked' and @data-file='/test.txt']", |
|
|
@ -187,6 +188,7 @@ module.exports = { |
|
|
|
'stage renamed file #group3': function (browser: NightwatchBrowser) { |
|
|
|
'stage renamed file #group3': function (browser: NightwatchBrowser) { |
|
|
|
browser |
|
|
|
browser |
|
|
|
.clickLaunchIcon('dgit') |
|
|
|
.clickLaunchIcon('dgit') |
|
|
|
|
|
|
|
.pause(3000) |
|
|
|
.waitForElementVisible({ |
|
|
|
.waitForElementVisible({ |
|
|
|
selector: "//*[@data-status='deleted-unstaged' and @data-file='/test.txt']", |
|
|
|
selector: "//*[@data-status='deleted-unstaged' and @data-file='/test.txt']", |
|
|
|
locateStrategy: 'xpath' |
|
|
|
locateStrategy: 'xpath' |
|
|
@ -228,6 +230,7 @@ module.exports = { |
|
|
|
'create a branch #group2': function (browser: NightwatchBrowser) { |
|
|
|
'create a branch #group2': function (browser: NightwatchBrowser) { |
|
|
|
browser |
|
|
|
browser |
|
|
|
.clickLaunchIcon('dgit') |
|
|
|
.clickLaunchIcon('dgit') |
|
|
|
|
|
|
|
.pause(3000) |
|
|
|
.click('*[data-id="branches-panel"]') |
|
|
|
.click('*[data-id="branches-panel"]') |
|
|
|
.waitForElementVisible('*[data-id="newbranchname"]') |
|
|
|
.waitForElementVisible('*[data-id="newbranchname"]') |
|
|
|
.setValue('*[data-id="newbranchname"]', 'testbranch') |
|
|
|
.setValue('*[data-id="newbranchname"]', 'testbranch') |
|
|
@ -244,6 +247,7 @@ module.exports = { |
|
|
|
'publish the branch #group2': function (browser: NightwatchBrowser) { |
|
|
|
'publish the branch #group2': function (browser: NightwatchBrowser) { |
|
|
|
browser |
|
|
|
browser |
|
|
|
.clickLaunchIcon('dgit') |
|
|
|
.clickLaunchIcon('dgit') |
|
|
|
|
|
|
|
.pause(3000) |
|
|
|
.waitForElementVisible('*[data-id="sourcecontrol-panel"]') |
|
|
|
.waitForElementVisible('*[data-id="sourcecontrol-panel"]') |
|
|
|
.click('*[data-id="sourcecontrol-panel"]') |
|
|
|
.click('*[data-id="sourcecontrol-panel"]') |
|
|
|
.pause(1000) |
|
|
|
.pause(1000) |
|
|
|