screenshots

pull/4837/head
filip mertens 8 months ago
parent 5626c77355
commit 264a433578
  1. 6
      .circleci/config.yml
  2. 5
      apps/remixdesktop/test/tests/app/xtermwin.test.ts

@ -266,11 +266,7 @@ jobs:
- run: - run:
name: "Run selenium" name: "Run selenium"
command: | command: |
cd apps/remixdesktop/ cd apps/remixdesktop/ && nvm use 20.0.0 && node -v && npm install --global yarn && yarn run selenium-win
nvm use 20.0.0
node -v
npm install --global yarn
yarn run selenium-win
background: true background: true
- run: - run:
name: "Run tests" name: "Run tests"

@ -68,10 +68,15 @@ const tests = {
}, },
'list files': function (browser: NightwatchBrowser) { 'list files': function (browser: NightwatchBrowser) {
browser browser
.pause(3000)
.waitForElementVisible("[data-active='1'][data-type='remixUIXT']", 10000)
.click("[data-active='1'][data-type='remixUIXT']")
.saveScreenshot('./reports/screenshots/list-files.png')
.perform(function () { .perform(function () {
const actions = this.actions({async: true}) const actions = this.actions({async: true})
return actions.sendKeys('ls').sendKeys(this.Keys.ENTER) return actions.sendKeys('ls').sendKeys(this.Keys.ENTER)
}) })
.saveScreenshot('./reports/screenshots/list-files-after.png')
.waitForElementVisible({ .waitForElementVisible({
selector: "//*[@data-type='remixUIXT' and @data-active='1']", selector: "//*[@data-type='remixUIXT' and @data-active='1']",
timeout: 10000, timeout: 10000,

Loading…
Cancel
Save