Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions .github/workflows/continuous_integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
run: npm ci
- name: Verify vulnerabilities
run: npm audit

Test:
runs-on: ubuntu-latest
steps:
Expand All @@ -41,10 +41,8 @@ jobs:
node-version: ${{ steps.nvm.outputs.NODE_VERSION }}
- name: Install dependencies
run: npm ci
- name: Install Playwright Browsers
run: npx playwright install --with-deps
- name: Execute test
run: npm run test
run: npm run test:unit
- name: SonarCloud Scan
uses: SonarSource/sonarqube-scan-action@v6
env:
Expand Down
27 changes: 27 additions & 0 deletions .github/workflows/playwright.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Playwright Tests
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
test:
timeout-minutes: 60
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: lts/*
- name: Install dependencies
run: npm ci
- name: Install Playwright Browsers
run: npx playwright install --with-deps
- name: Run Playwright tests
run: npx playwright test
- uses: actions/upload-artifact@v4
if: ${{ !cancelled() }}
with:
name: playwright-report
path: playwright-report/
retention-days: 30
8 changes: 8 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
test-results
node_modules
coverage
results-e2e.xml

# Output
.output
Expand All @@ -22,3 +24,9 @@ Thumbs.db
# Vite
vite.config.js.timestamp-*
vite.config.ts.timestamp-*

# Playwright
/playwright-report/
/blob-report/
/playwright/.cache/
/playwright/.auth/
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

Everything you need to build a Svelte project, powered by [`create-svelte`](https://github.com/sveltejs/kit/tree/master/packages/create-svelte).

[![Known Vulnerabilities](https://snyk.io/test/github/auth-plus/auth-plus-client/badge.svg)](https://snyk.io/test/github/auth-plus/auth-plus-client)

## Auth-Plus-Client

Front-end for Auth+ organization
Expand Down
4 changes: 2 additions & 2 deletions e2e/demo.test.ts → e2e/Header.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { expect, test } from '@playwright/test'

test('home page has expected h1', async ({ page }) => {
await page.goto('/')
const navElement = page.locator('nav');
const navElement = page.locator('nav')
await expect(navElement).toBeVisible()
await expect(navElement).toContainText('Auth +');
await expect(navElement).toContainText('Auth +')
})
Loading
Loading