split lines for FF

editorcontextDummy
filip mertens 2 years ago
parent 1bf9dd3fc9
commit 5fe96fa113
  1. 10
      apps/remix-ide-e2e/src/tests/editorAutoComplete.test.ts

@ -40,7 +40,9 @@ module.exports = {
.perform(function () { .perform(function () {
const actions = this.actions({ async: true }); const actions = this.actions({ async: true });
return actions. return actions.
sendKeys(' abc, testb') sendKeys(' abc')
.sendKeys(this.Keys.ENTER) // we need to split lines for FF texts to pass because the screen is too narrow
.sendKeys(', testb')
}) })
.waitForElementPresent(autoCompleteLineElement('"TestBookDefinition"')) .waitForElementPresent(autoCompleteLineElement('"TestBookDefinition"'))
.click(autoCompleteLineElement('"TestBookDefinition"')) .click(autoCompleteLineElement('"TestBookDefinition"'))
@ -54,7 +56,9 @@ module.exports = {
.perform(function () { .perform(function () {
const actions = this.actions({ async: true }); const actions = this.actions({ async: true });
return actions. return actions.
sendKeys(' btextbook, BaseB') sendKeys(' btextbook')
.sendKeys(this.Keys.ENTER)
.sendKeys(', BaseB')
}) })
.waitForElementPresent(autoCompleteLineElement('"BaseBook"')) .waitForElementPresent(autoCompleteLineElement('"BaseBook"'))
.click(autoCompleteLineElement('"BaseBook"')) .click(autoCompleteLineElement('"BaseBook"'))
@ -73,7 +77,7 @@ module.exports = {
}, },
'Should put cursor at the end of function #group2': function (browser: NightwatchBrowser) { 'Should put cursor at the end of function #group2': function (browser: NightwatchBrowser) {
const path = "//*[@class='view-line' and contains(.,'myprivatefunction') and contains(.,'private')]//span//span[contains(.,'{')]" const path = "//*[@class='view-line' and contains(.,'localbbook') and contains(.,'private')]//span//span[contains(.,'{')]"
browser browser
.useXpath() .useXpath()
.click(path).pause(1000) .click(path).pause(1000)

Loading…
Cancel
Save