|
|
|
@ -108,7 +108,7 @@ module.exports = { |
|
|
|
|
browser |
|
|
|
|
.waitForElementVisible('*[data-id="toggle_replace"]').click('*[data-id="toggle_replace"]') |
|
|
|
|
.waitForElementVisible('*[id="search_replace"]') |
|
|
|
|
.clearValue('*[id="search_include"]').setValue('*[id="search_include"]', 'contracts/*.sol') |
|
|
|
|
.clearValue('*[id="search_include"]').setValue('*[id="search_include"]', 'contracts/2_*.sol') |
|
|
|
|
.setValue('*[id="search_replace"]', 'replacing').sendKeys('*[id="search_include"]', browser.Keys.ENTER).pause(1000) |
|
|
|
|
.waitForElementVisible('*[data-id="contracts/2_Owner.sol-33-71"]') |
|
|
|
|
.moveToElement('*[data-id="contracts/2_Owner.sol-33-71"]', 10, 10) |
|
|
|
@ -135,7 +135,8 @@ module.exports = { |
|
|
|
|
'Should replace all & undo #group1': function (browser: NightwatchBrowser) { |
|
|
|
|
browser |
|
|
|
|
.clearValue('*[id="search_input"]') |
|
|
|
|
.setValue('*[id="search_input"]', 'storage').sendKeys('*[id="search_input"]', browser.Keys.ENTER) |
|
|
|
|
.clearValue('*[id="search_include"]').setValue('*[id="search_include"]', 'contracts/1_*.sol') |
|
|
|
|
.setValue('*[id="search_input"]', 'storage').sendKeys('*[id="search_include"]', browser.Keys.ENTER) |
|
|
|
|
.clearValue('*[id="search_replace"]') |
|
|
|
|
.setValue('*[id="search_replace"]', '123test').pause(1000) |
|
|
|
|
.waitForElementVisible('*[data-id="replace-all-contracts/1_Storage.sol"]') |
|
|
|
|