pull/3530/head^2
lianahus 2 years ago committed by Aniket
parent f1cf0d3ca0
commit 80241de051
  1. 2
      apps/remix-ide-e2e/src/commands/currentSelectedFileIs.ts
  2. 7
      apps/remix-ide-e2e/src/tests/importFromGithub.test.ts

@ -4,7 +4,7 @@ import EventEmitter from 'events'
class CurrentSelectedFileIs extends EventEmitter {
command (this: NightwatchBrowser, value: string): NightwatchBrowser {
this.api
.waitForElementContainsText('*[data-id="tabs-component"] *[data-id="tab-active"]', value)
.waitForElementContainsText('*[data-id="tabs-component"] *[data-id="activeTabTitle"]', value)
.perform(() => {
this.emit('complete')
})

@ -18,7 +18,7 @@ module.exports = {
browser.clickLaunchIcon('home')
.waitForElementVisible('*[data-id="remixIdeIconPanel"]', 10000)
.clickLaunchIcon('filePanel')
.click('div[title="home"]')
.click('div[title="Home"]')
.waitForElementVisible('button[data-id="landingPageImportFromGitHubButton"]')
.pause(1000)
.click('button[data-id="landingPageImportFromGitHubButton"]')
@ -57,7 +57,10 @@ module.exports = {
.waitForElementVisible('*[data-id="homeTab-modal-footer-ok-react"]')
.click('[data-id="homeTab-modal-footer-ok-react"]')
.openFile('github/OpenZeppelin/openzeppelin-solidity/contracts/access/Roles.sol')
.waitForElementVisible("div[title='default_workspace/github/OpenZeppelin/openzeppelin-solidity/contracts/access/Roles.sol'")
.waitForElementVisible({
selector: `//*[@data-id='activeTabTitle' and contains(., "default_workspace/github/OpenZeppelin/openzeppelin-solidity/contracts/access/Roles.sol")]`,
locateStrategy: 'xpath'
})
.getEditorValue((content) => {
browser.assert.ok(content.indexOf('library Roles {') !== -1, 'content does contain "library Roles {"')
})

Loading…
Cancel
Save