pull/2868/head
filip mertens 2 years ago
parent a32856eccc
commit b579eee9b2
  1. 7
      apps/remix-ide-e2e/src/commands/addFile.ts
  2. 1
      apps/remix-ide-e2e/src/tests/url.test.ts

@ -15,7 +15,6 @@ class AddFile extends EventEmitter {
function addFile(browser: NightwatchBrowser, name: string, content: NightwatchContractContent, done: VoidFunction) {
browser
.saveScreenshot('./reports/screenshots/addFile.png')
.isVisible({
selector: "//*[@data-id='sidePanelSwapitTitle' and contains(.,'File explorer')]",
locateStrategy: 'xpath',
@ -24,11 +23,9 @@ function addFile(browser: NightwatchBrowser, name: string, content: NightwatchCo
}, (okVisible) => {
if (!okVisible.value) {
browser.clickLaunchIcon('filePanel')
.saveScreenshot('./reports/screenshots/addFile2.png')
}
})
.scrollInto('li[data-id="treeViewLitreeViewItemREADME.txt"]')
.saveScreenshot('./reports/screenshots/addFile3.png')
.waitForElementVisible('li[data-id="treeViewLitreeViewItemREADME.txt"]')
.click('li[data-id="treeViewLitreeViewItemREADME.txt"]').pause(1000) // focus on root directory
.isVisible({
@ -47,11 +44,8 @@ function addFile(browser: NightwatchBrowser, name: string, content: NightwatchCo
} else {
browser.click('[data-id="fileExplorerNewFilecreateNewFile"]')
.waitForElementContainsText('*[data-id$="/blank"]', '', 60000)
.saveScreenshot('./reports/screenshots/addFile4.png')
.sendKeys('*[data-id$="/blank"] .remixui_items', name)
.saveScreenshot('./reports/screenshots/addFile5.png')
.sendKeys('*[data-id$="/blank"] .remixui_items', browser.Keys.ENTER)
.saveScreenshot('./reports/screenshots/addFile6.png')
.isVisible({
selector: `li[data-id="treeViewLitreeViewItem${name}"]`,
abortOnFailure: false,
@ -59,7 +53,6 @@ function addFile(browser: NightwatchBrowser, name: string, content: NightwatchCo
})
.waitForElementVisible(`li[data-id="treeViewLitreeViewItem${name}"]`)
.setEditorValue(content.content)
.saveScreenshot('./reports/screenshots/addFile7.png')
.perform(function () {
done()
})

@ -125,7 +125,6 @@ module.exports = {
.refreshPage() // we do one reload for making sure we already have the default workspace
.waitForElementVisible('[data-id="compilerContainerCompileBtn"]')
.saveScreenshot('./reports/screenshots/should-load-the-code-from-url-code-params.png')
.clickLaunchIcon('filePanel')
.waitForElementVisible({
selector: `//li[@data-id="treeViewLitreeViewItemethereum/remix-project/apps/remix-ide/contracts/app/solidity/mode.sol"]`,

Loading…
Cancel
Save