Skip to content

Commit

Permalink
stupid CI
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanak-michal committed May 16, 2024
1 parent 7124c6c commit 7583d76
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/playwright.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,12 @@ jobs:
DB_HOSTNAME: 'bolt://neo4j:7687'
DB_USERNAME: 'neo4j'
DB_PASSWORD: 'nothing123'
- uses: actions/upload-artifact@v4
if: ${{ failure() }}
with:
name: playwright-report
path: playwright-report/
retention-days: 1
# - name: Upload blob report to GitHub Actions Artifacts
# if: ${{ failure() }}
# uses: actions/upload-artifact@v4
Expand Down
4 changes: 2 additions & 2 deletions e2e/neo4j-read/index.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@ test.describe('Remember me', { tag: '@neo4j-read' }, () => {
await page.getByText('Remember me (not secure)').click();
await page.getByRole('button', { name: 'Login' }).click();
// check success
await expect(page.locator('#basicNavbar')).toBeVisible();
await expect(page.getByLabel('main navigation')).toHaveCount(1);
// open page again and it should automatically log in
await page.goto(process.env.URL || '/');
await expect(page.locator('#basicNavbar')).toBeVisible();
await expect(page.getByLabel('main navigation')).toHaveCount(1);
// click on log out button should stay at login page
await page.getByRole('button', { name: 'Log out' }).click();
await expect(page.locator('form#login')).toHaveCount(1);
Expand Down

0 comments on commit 7583d76

Please sign in to comment.