|
|
@ -370,25 +370,23 @@ module.exports = { |
|
|
|
|
|
|
|
|
|
|
|
// GIT WORKSPACE E2E STARTS
|
|
|
|
// GIT WORKSPACE E2E STARTS
|
|
|
|
|
|
|
|
|
|
|
|
'Should create a git workspace (uniswapV4Periphery) #group4': function (browser: NightwatchBrowser) { |
|
|
|
'Should create a git workspace (uniswapV4Template) #group4': function (browser: NightwatchBrowser) { |
|
|
|
browser |
|
|
|
browser |
|
|
|
.click('*[data-id="workspacesMenuDropdown"]') |
|
|
|
.click('*[data-id="workspacesMenuDropdown"]') |
|
|
|
.click('*[data-id="workspacecreate"]') |
|
|
|
.click('*[data-id="workspacecreate"]') |
|
|
|
.waitForElementVisible('*[data-id="modalDialogCustomPromptTextCreate"]') |
|
|
|
.waitForElementVisible('*[data-id="modalDialogCustomPromptTextCreate"]') |
|
|
|
.waitForElementVisible('[data-id="fileSystemModalDialogModalFooter-react"] > button') |
|
|
|
.waitForElementVisible('[data-id="fileSystemModalDialogModalFooter-react"] > button') |
|
|
|
.click('select[id="wstemplate"]') |
|
|
|
.click('select[id="wstemplate"]') |
|
|
|
.click('select[id="wstemplate"] option[value=uniswapV4Periphery]') |
|
|
|
.click('select[id="wstemplate"] option[value=uniswapV4Template]') |
|
|
|
.waitForElementPresent('[data-id="fileSystemModalDialogModalFooter-react"] .modal-ok') |
|
|
|
.waitForElementPresent('[data-id="fileSystemModalDialogModalFooter-react"] .modal-ok') |
|
|
|
.execute(function () { (document.querySelector('[data-id="fileSystemModalDialogModalFooter-react"] .modal-ok') as HTMLElement).click() }) |
|
|
|
.execute(function () { (document.querySelector('[data-id="fileSystemModalDialogModalFooter-react"] .modal-ok') as HTMLElement).click() }) |
|
|
|
.pause(100) |
|
|
|
.pause(100) |
|
|
|
.waitForElementVisible('*[data-id="treeViewLitreeViewItemcontracts"]') |
|
|
|
.waitForElementVisible('*[data-id="treeViewLitreeViewItemsrc"]') |
|
|
|
.openFile('contracts') |
|
|
|
.openFile('src') |
|
|
|
.openFile('contracts/hooks') |
|
|
|
.openFile('src/Counter.sol') |
|
|
|
.openFile('contracts/hooks/examples') |
|
|
|
|
|
|
|
.openFile('contracts/hooks/examples/FullRange.sol') |
|
|
|
|
|
|
|
.pause(1000) |
|
|
|
.pause(1000) |
|
|
|
.getEditorValue((content) => { |
|
|
|
.getEditorValue((content) => { |
|
|
|
browser.assert.ok(content.indexOf(`contract FullRange is BaseHook`) !== -1, |
|
|
|
browser.assert.ok(content.indexOf(`contract Counter is BaseHook {`) !== -1, |
|
|
|
'Incorrect content') |
|
|
|
'Incorrect content') |
|
|
|
}) |
|
|
|
}) |
|
|
|
},
|
|
|
|
},
|
|
|
@ -406,4 +404,4 @@ url = https://github.com/bunsenstraat/empty3 |
|
|
|
[submodule "testactionsub"] |
|
|
|
[submodule "testactionsub"] |
|
|
|
path = testactionsub |
|
|
|
path = testactionsub |
|
|
|
url = https://github.com/bunsenstraat/testactions
|
|
|
|
url = https://github.com/bunsenstraat/testactions
|
|
|
|
` |
|
|
|
` |
|
|
|