|
|
@ -63,12 +63,10 @@ module.exports = { |
|
|
|
'Should clone a repository #group2': function (browser: NightwatchBrowser) { |
|
|
|
'Should clone a repository #group2': function (browser: NightwatchBrowser) { |
|
|
|
browser |
|
|
|
browser |
|
|
|
.clickLaunchIcon('filePanel') |
|
|
|
.clickLaunchIcon('filePanel') |
|
|
|
.useXpath() |
|
|
|
.waitForElementVisible('[data-id="workspaceMenuDropdown"]') |
|
|
|
.waitForElementVisible('[data-id="workspaceDropdownMenuIcon"]') |
|
|
|
.click('[data-id="workspaceMenuDropdown"]') |
|
|
|
.click('[data-id="workspaceDropdownMenuIcon"]') |
|
|
|
.waitForElementVisible('[data-id="workspaceclone"]') |
|
|
|
.waitForElementVisible('[data-id="initGitRepositoryLabel"]') |
|
|
|
.click('[data-id="workspaceclone"]') |
|
|
|
.click('[data-id="workspaceclone]"') |
|
|
|
|
|
|
|
.useCss() |
|
|
|
|
|
|
|
.waitForElementVisible('[data-id="fileSystemModalDialogModalBody-react"]') |
|
|
|
.waitForElementVisible('[data-id="fileSystemModalDialogModalBody-react"]') |
|
|
|
.click('[data-id="fileSystemModalDialogModalBody-react"]') |
|
|
|
.click('[data-id="fileSystemModalDialogModalBody-react"]') |
|
|
|
.waitForElementVisible('[data-id="modalDialogCustomPromptTextClone"]') |
|
|
|
.waitForElementVisible('[data-id="modalDialogCustomPromptTextClone"]') |
|
|
@ -91,11 +89,9 @@ module.exports = { |
|
|
|
|
|
|
|
|
|
|
|
'Should display non-clashing names for duplicate clone #group2': '' + function (browser: NightwatchBrowser) { |
|
|
|
'Should display non-clashing names for duplicate clone #group2': '' + function (browser: NightwatchBrowser) { |
|
|
|
browser |
|
|
|
browser |
|
|
|
.useXpath() |
|
|
|
.click('[data-id="workspaceMenuDropdown"]') |
|
|
|
.click('[data-id="workspaceDropdownMenuIcon"]') |
|
|
|
.waitForElementVisible('[data-id="workspaceclone"]') |
|
|
|
.waitForElementVisible('[data-id="workspaceclone]"') |
|
|
|
.click('[data-id="workspaceclone"]') |
|
|
|
.click('[data-id="workspaceclone]"') |
|
|
|
|
|
|
|
.useCss() |
|
|
|
|
|
|
|
.waitForElementVisible('[data-id="fileSystemModalDialogModalBody-react"]') |
|
|
|
.waitForElementVisible('[data-id="fileSystemModalDialogModalBody-react"]') |
|
|
|
.click('[data-id="fileSystemModalDialogModalBody-react"]') |
|
|
|
.click('[data-id="fileSystemModalDialogModalBody-react"]') |
|
|
|
.waitForElementVisible('[data-id="modalDialogCustomPromptTextClone"]') |
|
|
|
.waitForElementVisible('[data-id="modalDialogCustomPromptTextClone"]') |
|
|
@ -103,11 +99,9 @@ module.exports = { |
|
|
|
.click('[data-id="fileSystem-modal-footer-ok-react"]') |
|
|
|
.click('[data-id="fileSystem-modal-footer-ok-react"]') |
|
|
|
.pause(5000) |
|
|
|
.pause(5000) |
|
|
|
.waitForElementContainsText('[data-id="workspacesSelect"]', 'awesome-remix1') |
|
|
|
.waitForElementContainsText('[data-id="workspacesSelect"]', 'awesome-remix1') |
|
|
|
.useXpath() |
|
|
|
.click('[data-id="workspaceMenuDropdown"]') |
|
|
|
.click('[data-id="workspaceDropdownMenuIcon"]') |
|
|
|
.waitForElementVisible('[data-id="workspaceclone"]') |
|
|
|
.waitForElementVisible('[data-id="workspaceclone]"') |
|
|
|
.click('[data-id="workspaceclone"]') |
|
|
|
.click('[data-id="workspaceclone]"') |
|
|
|
|
|
|
|
.useCss() |
|
|
|
|
|
|
|
.waitForElementVisible('[data-id="fileSystemModalDialogModalBody-react"]') |
|
|
|
.waitForElementVisible('[data-id="fileSystemModalDialogModalBody-react"]') |
|
|
|
.click('[data-id="fileSystemModalDialogModalBody-react"]') |
|
|
|
.click('[data-id="fileSystemModalDialogModalBody-react"]') |
|
|
|
.waitForElementVisible('[data-id="modalDialogCustomPromptTextClone"]') |
|
|
|
.waitForElementVisible('[data-id="modalDialogCustomPromptTextClone"]') |
|
|
@ -115,10 +109,8 @@ module.exports = { |
|
|
|
.click('[data-id="fileSystem-modal-footer-ok-react"]') |
|
|
|
.click('[data-id="fileSystem-modal-footer-ok-react"]') |
|
|
|
.pause(5000) |
|
|
|
.pause(5000) |
|
|
|
.waitForElementContainsText('[data-id="workspacesSelect"]', 'awesome-remix2') |
|
|
|
.waitForElementContainsText('[data-id="workspacesSelect"]', 'awesome-remix2') |
|
|
|
.useXpath() |
|
|
|
.click('[data-id="workspaceMenuDropdown"]') |
|
|
|
.click('[data-id="workspaceDropdownMenuIcon"]') |
|
|
|
.waitForElementVisible('[data-id="workspaceDropdownMenuIcon]"') |
|
|
|
.waitForElementVisible('[data-id="workspaceclone]"') |
|
|
|
|
|
|
|
.useCss() |
|
|
|
|
|
|
|
.waitForElementVisible('[data-id="fileSystemModalDialogModalBody-react"]') |
|
|
|
.waitForElementVisible('[data-id="fileSystemModalDialogModalBody-react"]') |
|
|
|
.click('[data-id="fileSystemModalDialogModalBody-react"]') |
|
|
|
.click('[data-id="fileSystemModalDialogModalBody-react"]') |
|
|
|
.waitForElementVisible('[data-id="modalDialogCustomPromptTextClone"]') |
|
|
|
.waitForElementVisible('[data-id="modalDialogCustomPromptTextClone"]') |
|
|
@ -134,15 +126,10 @@ module.exports = { |
|
|
|
|
|
|
|
|
|
|
|
'Should display error message in modal for failed clone #group2': function (browser: NightwatchBrowser) { |
|
|
|
'Should display error message in modal for failed clone #group2': function (browser: NightwatchBrowser) { |
|
|
|
browser |
|
|
|
browser |
|
|
|
.useXpath() |
|
|
|
.waitForElementVisible('[data-id="workspaceDropdownMenuIcon"]') |
|
|
|
.waitForElementPresent({ |
|
|
|
.click('[data-id="workspaceMenuDropdown"]') |
|
|
|
selector: '[data-id="workspaceDropdownMenuIcon"]', |
|
|
|
.waitForElementVisible('[data-id="workspaceclone"]') |
|
|
|
locateStrategy: 'xpath', |
|
|
|
.click('[data-id="workspaceclone"]') |
|
|
|
}) |
|
|
|
|
|
|
|
.click('[data-id="workspaceDropdownMenuIcon"]') |
|
|
|
|
|
|
|
.waitForElementVisible('[data-id="workspaceclone]"') |
|
|
|
|
|
|
|
.click('[data-id="workspaceclone]"') |
|
|
|
|
|
|
|
.useCss() |
|
|
|
|
|
|
|
.waitForElementVisible('[data-id="fileSystemModalDialogModalBody-react"]') |
|
|
|
.waitForElementVisible('[data-id="fileSystemModalDialogModalBody-react"]') |
|
|
|
.click('[data-id="fileSystemModalDialogModalBody-react"]') |
|
|
|
.click('[data-id="fileSystemModalDialogModalBody-react"]') |
|
|
|
.waitForElementVisible('[data-id="modalDialogCustomPromptTextClone"]') |
|
|
|
.waitForElementVisible('[data-id="modalDialogCustomPromptTextClone"]') |
|
|
@ -161,11 +148,9 @@ module.exports = { |
|
|
|
browser |
|
|
|
browser |
|
|
|
.clickLaunchIcon('filePanel') |
|
|
|
.clickLaunchIcon('filePanel') |
|
|
|
.waitForElementNotVisible('[data-id="workspaceGitPanel"]') |
|
|
|
.waitForElementNotVisible('[data-id="workspaceGitPanel"]') |
|
|
|
.useXpath() |
|
|
|
.click('[data-id="workspaceMenuDropdown"]') |
|
|
|
.click('[data-id="workspaceDropdownMenuIcon"]') |
|
|
|
.waitForElementVisible('[data-id="workspaceclone"]') |
|
|
|
.waitForElementVisible('[data-id="workspaceclone]"') |
|
|
|
.click('[data-id="workspaceclone"]') |
|
|
|
.click('[data-id="workspaceclone]"') |
|
|
|
|
|
|
|
.useCss() |
|
|
|
|
|
|
|
.waitForElementVisible('[data-id="fileSystemModalDialogModalBody-react"]') |
|
|
|
.waitForElementVisible('[data-id="fileSystemModalDialogModalBody-react"]') |
|
|
|
.click('[data-id="fileSystemModalDialogModalBody-react"]') |
|
|
|
.click('[data-id="fileSystemModalDialogModalBody-react"]') |
|
|
|
.waitForElementVisible('[data-id="modalDialogCustomPromptTextClone"]') |
|
|
|
.waitForElementVisible('[data-id="modalDialogCustomPromptTextClone"]') |
|
|
|