Update search.test.ts

pull/5370/head
bunsenstraat 3 years ago committed by Aniket
parent ef56b5c63b
commit deeac12e96
  1. 6
      apps/remix-ide-e2e/src/tests/search.test.ts

@ -8,7 +8,7 @@ module.exports = {
before: function (browser: NightwatchBrowser, done: VoidFunction) { before: function (browser: NightwatchBrowser, done: VoidFunction) {
init(browser, done, 'http://127.0.0.1:8080', true) init(browser, done, 'http://127.0.0.1:8080', true)
}, },
'Should find text #group1 #flaky': function (browser: NightwatchBrowser) { 'Should find text #group1': function (browser: NightwatchBrowser) {
browser.waitForElementVisible('*[data-id="remixIdeSidePanel"]') browser.waitForElementVisible('*[data-id="remixIdeSidePanel"]')
.click('*[plugin="search"]').waitForElementVisible('*[id="search_input"]') .click('*[plugin="search"]').waitForElementVisible('*[id="search_input"]')
.waitForElementVisible('*[id="search_include"]') .waitForElementVisible('*[id="search_include"]')
@ -164,7 +164,7 @@ 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 #flaky': function (browser: NightwatchBrowser) { 'Should hide button when edited content is the same #group2': 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"]') .click('*[plugin="search"]')
@ -238,4 +238,4 @@ module.exports = {
Array.isArray(res.value) && browser.assert.equal(res.value.length, 0) Array.isArray(res.value) && browser.assert.equal(res.value.length, 0)
}) })
} }
} }

Loading…
Cancel
Save