Skip to content

Commit

Permalink
Corrected CI
Browse files Browse the repository at this point in the history
  • Loading branch information
GermanBluefox committed May 29, 2024
1 parent 066c16d commit 75f8c01
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/test-and-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ jobs:
# if: failure()
uses: actions/upload-artifact@v4
with:
path: tmp/screenshots/**/*.png
path: packages/admin/tmp/screenshots/**/*.png
retention-days: 3

# Deploys the final package to NPM
Expand Down
6 changes: 6 additions & 0 deletions packages/admin/test/testAdapter.gui.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@ const guiHelper = require('./guiHelper');

let gPage;

async function screenshot(page, fileName) {
page = page || gPage;
await page.screenshot({path: `${__dirname}/../tmp/screenshots/${fileName}.png`});
}

describe('admin-gui', () => {
before(async function () {
this.timeout(240_000);
Expand All @@ -16,6 +21,7 @@ describe('admin-gui', () => {
it('Check all widgets', async function () {
this.timeout(120_000);
await gPage.waitForSelector('a[href="/#easy"]', { timeout: 120_000 });
await screenshot(gPage, '00_started');
});

after(async function () {
Expand Down

0 comments on commit 75f8c01

Please sign in to comment.