|
|
@ -169,12 +169,15 @@ module.exports = { |
|
|
|
.addFile('test.sol', { content: '123' }) |
|
|
|
.addFile('test.sol', { content: '123' }) |
|
|
|
.click('*[plugin="search"]') |
|
|
|
.click('*[plugin="search"]') |
|
|
|
.waitForElementVisible('*[id="search_input"]') |
|
|
|
.waitForElementVisible('*[id="search_input"]') |
|
|
|
|
|
|
|
.saveScreenshot('./reports/screenshots/search_replace_test.png') |
|
|
|
.waitForElementVisible('*[data-id="toggle_replace"]') |
|
|
|
.waitForElementVisible('*[data-id="toggle_replace"]') |
|
|
|
.click('*[data-id="toggle_replace"]') |
|
|
|
.click('*[data-id="toggle_replace"]') |
|
|
|
|
|
|
|
.saveScreenshot('./reports/screenshots/search_replace_test_2.png') |
|
|
|
.clearValue('*[id="search_input"]') |
|
|
|
.clearValue('*[id="search_input"]') |
|
|
|
.setValue('*[id="search_input"]', '123') |
|
|
|
.setValue('*[id="search_input"]', '123') |
|
|
|
.sendKeys('*[id="search_input"]', browser.Keys.ENTER) |
|
|
|
.sendKeys('*[id="search_input"]', browser.Keys.ENTER) |
|
|
|
.waitForElementVisible('*[id="search_replace"]') |
|
|
|
.waitForElementVisible('*[id="search_replace"]') |
|
|
|
|
|
|
|
.saveScreenshot('./reports/screenshots/search_replace_test_3.png') |
|
|
|
.clearValue('*[id="search_replace"]') |
|
|
|
.clearValue('*[id="search_replace"]') |
|
|
|
.setValue('*[id="search_replace"]', '456').pause(1000) |
|
|
|
.setValue('*[id="search_replace"]', '456').pause(1000) |
|
|
|
.click('*[data-id="confirm_replace_label"]').pause(500) |
|
|
|
.click('*[data-id="confirm_replace_label"]').pause(500) |
|
|
|