-
Notifications
You must be signed in to change notification settings - Fork 13
End-to-End tests #202
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
End-to-End tests #202
Changes from all commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
6269a42
playwright e2e tests
louisinger 01b5205
lint script in pkg.json
louisinger b02c11e
playwright.yml: run nigiri step
louisinger 8bba393
fix
louisinger 1fd726d
set CI env var in playwirght.yml
louisinger 97c3377
ci fix
louisinger beb3f25
remove reuse exiting server
louisinger 36316a8
playwright.config.ts: CI retry config
louisinger bc8945a
use xvfb-run
louisinger 7b268ae
fix
louisinger 5ef4123
format
louisinger 7af209c
Update README.md
louisinger 82acd3e
Update README.md
bordalix File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,30 @@ | ||
| name: Playwright Tests | ||
| on: | ||
| push: | ||
| branches: [ master ] | ||
| pull_request: | ||
| branches: [ master ] | ||
| 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 install -g pnpm && pnpm install | ||
| - name: Install Playwright Browsers | ||
| run: pnpm exec playwright install --with-deps | ||
| - name: Run Nigiri | ||
| uses: vulpemventures/nigiri-github-action@v1 | ||
| with: | ||
| use_liquid: false | ||
| use_ln: false | ||
| - name: Setup regtest environment | ||
| run: pnpm regtest | ||
| - name: Run Playwright tests | ||
| run: sleep 5 && xvfb-run npx playwright test | ||
| env: | ||
| CI: true | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,33 @@ | ||
| import { defineConfig, devices } from '@playwright/test'; | ||
|
|
||
| export default defineConfig({ | ||
| testDir: './src/test/e2e', | ||
| fullyParallel: false, | ||
| forbidOnly: !!process.env.CI, | ||
| retries: process.env.CI ? 5 : 0, | ||
| workers: 1, | ||
| reporter: 'list', | ||
| use: { | ||
| baseURL: 'http://localhost:3002', | ||
| headless: true, | ||
| viewport: { width: 1280, height: 800 }, | ||
| trace: 'on-first-retry', | ||
| permissions: ['clipboard-read', 'clipboard-write'], | ||
| actionTimeout: 30000, | ||
| navigationTimeout: 30000, | ||
| }, | ||
| webServer: { | ||
| command: 'pnpm start', | ||
| port: 3002, | ||
| }, | ||
louisinger marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| projects: [ | ||
| { | ||
| name: 'Mobile Chrome', | ||
| use: { ...devices['Pixel 7'] }, | ||
| }, | ||
| { | ||
| name: 'Google Chrome', | ||
| use: { ...devices['Desktop Chrome'], channel: 'chrome' }, | ||
| } | ||
| ], | ||
| }); | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.