|
|
@ -164,13 +164,13 @@ module.exports = { |
|
|
|
browser.assert.ok(content.includes("Storage' contract"), 'should replace text ok') |
|
|
|
browser.assert.ok(content.includes("Storage' contract"), 'should replace text ok') |
|
|
|
}) |
|
|
|
}) |
|
|
|
}, |
|
|
|
}, |
|
|
|
'Should hide button when edited content is the same #group2': function (browser: NightwatchBrowser) { |
|
|
|
'Should hide button when edited content is the same #group2 #flaky': function (browser: NightwatchBrowser) { |
|
|
|
browser.waitForElementVisible('*[data-id="remixIdeSidePanel"]') |
|
|
|
browser.waitForElementVisible('*[data-id="remixIdeSidePanel"]') |
|
|
|
.addFile('test.sol', { content: '123' }) |
|
|
|
.addFile('test.sol', { content: '123' }) |
|
|
|
.click('*[plugin="search"]').waitForElementVisible('*[id="search_input"]') |
|
|
|
.click('*[plugin="search"]').waitForElementVisible('*[id="search_input"]') |
|
|
|
|
|
|
|
.waitForElementVisible('*[data-id="toggle_replace"]').click('*[data-id="toggle_replace"]') |
|
|
|
.clearValue('*[id="search_input"]') |
|
|
|
.clearValue('*[id="search_input"]') |
|
|
|
.setValue('*[id="search_input"]', '123').sendKeys('*[id="search_input"]', browser.Keys.ENTER) |
|
|
|
.setValue('*[id="search_input"]', '123').sendKeys('*[id="search_input"]', browser.Keys.ENTER) |
|
|
|
.waitForElementVisible('*[data-id="toggle_replace"]').click('*[data-id="toggle_replace"]') |
|
|
|
|
|
|
|
.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) |
|
|
|