flattentree
filip mertens 11 months ago
parent 49534d32e2
commit 343e2c761f
  1. 39
      apps/remix-ide-e2e/src/commands/refreshPage.ts
  2. 4
      apps/remix-ide-e2e/src/helpers/init.ts
  3. 2
      apps/remix-ide-e2e/src/tests/gist.test.ts
  4. 3
      apps/remix-ide/src/assets/css/themes/remix-dark_tvx1s2.css

@ -1,16 +1,33 @@
import { NightwatchBrowser } from 'nightwatch'
import {NightwatchBrowser} from 'nightwatch'
import EventEmitter from 'events'
class RefreshPage extends EventEmitter {
command(this: NightwatchBrowser) {
browser.refresh()
.verifyLoad()
.perform((done) => {
done()
this.emit('complete')
})
}
}
command(this: NightwatchBrowser) {
browser
.refresh()
.verifyLoad()
.perform((done) => {
//if (hideToolTips) {
browser.execute(function () {
// hide tooltips
function addStyle(styleString) {
const style = document.createElement('style')
style.textContent = styleString
document.head.append(style)
}
addStyle(`
.popover {
display:none !important;
}
`)
}, [], done())
})
.perform((done) => {
done()
this.emit('complete')
})
}
}
module.exports = RefreshPage
module.exports = RefreshPage

@ -22,7 +22,7 @@ export default function (browser: NightwatchBrowser, callback: VoidFunction, url
.perform(done())
})
.verifyLoad()
.perform(() => {
.perform((done) => {
//if (hideToolTips) {
browser.execute(function () { // hide tooltips
function addStyle(styleString) {
@ -36,7 +36,7 @@ export default function (browser: NightwatchBrowser, callback: VoidFunction, url
display:none !important;
}
`);
})
}, [], done())
})
.perform(() => {
browser.execute(function () {

@ -38,7 +38,7 @@ module.exports = {
.executeScriptInTerminal(`remix.loadgist('${gistid}')`)
// .perform((done) => { if (runtimeBrowser === 'chrome') { browser.openFile('gists') } done() })
.waitForElementVisible(`[data-id="treeViewLitreeViewItemgist-${gistid}"]`)
.click(`[data-id="treeViewLitreeViewItemgist-${gistid}"]`)
.openFile(`gist-${gistid}/README.txt`)
// Remix publish to gist
/* .click('*[data-id="fileExplorerNewFilepublishToGist"]')

@ -5409,9 +5409,6 @@ a.close.disabled {
padding: 9px 14px;
color: #fff;
}
.popover {
display: none !important;
}
.carousel {
position: relative;
}

Loading…
Cancel
Save