Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
2f90744
Initialized tests
SocioDroid May 19, 2023
52b4826
Configured dappwright for metamask signin
SocioDroid May 22, 2023
da0bfc7
CI setup
SocioDroid May 23, 2023
4357d31
Fixed docker-compose.yml path
SocioDroid May 23, 2023
ae6fa1f
Fix Path
SocioDroid May 23, 2023
4e97a56
Added playwright workflow container
SocioDroid May 24, 2023
817e688
Updated workflow
SocioDroid May 24, 2023
b6d8e45
test on global URL
SocioDroid May 24, 2023
1b9ed04
Hardcoded hash_key
SocioDroid May 24, 2023
df1984b
Added workflow secrets
SocioDroid May 24, 2023
aaa97e3
added supabase url
SocioDroid May 24, 2023
0973b11
setting max heap size for github action
SocioDroid May 24, 2023
b3be715
Updated node options
SocioDroid May 24, 2023
d0a72a5
running build and preview from CI
SocioDroid May 24, 2023
50408fc
Updated docker position
SocioDroid May 24, 2023
cd05a0e
Updated docker service path
SocioDroid May 24, 2023
888ae9b
renaming hardhat
SocioDroid May 24, 2023
03d2e00
reset baseURL
SocioDroid May 24, 2023
d77e2ef
Added Screenshot in reports
SocioDroid May 24, 2023
f910ff9
Added Synpress Support
SocioDroid May 25, 2023
8c38092
Adding Display Support
SocioDroid May 25, 2023
466ac30
Removed container
SocioDroid May 25, 2023
a10b7ff
Printing pages in log
SocioDroid May 26, 2023
3d0379c
turned on headless mode
SocioDroid May 26, 2023
7fb2790
Update playwright.yml
SocioDroid May 26, 2023
904e235
Update playwright.yml
SocioDroid May 26, 2023
710833a
Update test.fixtures.ts
SocioDroid May 26, 2023
54614d8
Added xvfb-run
SocioDroid May 26, 2023
35871f4
Added xvfb-run
SocioDroid May 26, 2023
87c6db6
Updated playwright config
SocioDroid May 26, 2023
73e16e5
Added new headless mode
SocioDroid May 26, 2023
25ce083
Switching to headless mode
SocioDroid May 26, 2023
385d4d0
Added playwright container
SocioDroid May 26, 2023
2bd0111
Added cache clean step
SocioDroid May 26, 2023
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
2 changes: 1 addition & 1 deletion .eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ module.exports = {
parser: '@typescript-eslint/parser',
extends: ['eslint:recommended', 'plugin:@typescript-eslint/recommended', 'prettier'],
plugins: ['svelte3', '@typescript-eslint'],
ignorePatterns: ['*.cjs'],
ignorePatterns: ['*.cjs', 'tests/*'],
overrides: [{ files: ['*.svelte'], processor: 'svelte3/svelte3' }],
settings: {
'svelte3/typescript': () => require('typescript')
Expand Down
60 changes: 60 additions & 0 deletions .github/workflows/playwright.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
name: Playwright Tests
on:
push:
branches: [main, master]
pull_request:
branches: [main, master]
env:
SUPABASE_JWT: ${{ secrets.SUPABASE_JWT }}
PUBLIC_SUPABASE_URL: ${{ secrets.PUBLIC_SUPABASE_URL }}
HASH_KEY: ${{ secrets.HASH_KEY }}
VITE_SUPABASE_URL: ${{ secrets.VITE_SUPABASE_URL }}
VITE_SUPABASE_ANON_KEY: ${{ secrets.VITE_SUPABASE_ANON_KEY }}

jobs:
test:
timeout-minutes: 60
runs-on: ubuntu-latest
container:
image: mcr.microsoft.com/playwright:v1.34.3-jammy

steps:
- uses: actions/checkout@v3

- uses: actions/cache@v2
with:
path: node_modules
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-

- uses: actions/setup-node@v3
with:
node-version: 16

- name: Clean cache
run: sudo npm cache clean --force

- name: Install dependencies
run: sudo npm ci

- name: Build UI
run: |
export NODE_OPTIONS="--max_old_space_size=4096"
sudo npm run build

- name: Start UI
run: sudo npm run preview &

- name: Wait for UI to start
run: sleep 10

- name: Run Playwright tests
run: sudo xvfb-run npm run test

- uses: actions/upload-artifact@v3
if: always()
with:
name: playwright-report
path: playwright-report/
retention-days: 30
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,7 @@ node_modules
.env
.env.*
!.env.example
yarn-error.log
yarn-error.log
/test-results/
/playwright-report/
/playwright/.cache/
6 changes: 6 additions & 0 deletions docker/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
version: '3'
services:
hardhat:
image: vishalkale151071/hardhat-node
ports:
- '8545:8545'
Loading