Commit afd668d9 authored by isstuev's avatar isstuev

fix

parent a5bf3da0
...@@ -2,19 +2,22 @@ name: playwright ...@@ -2,19 +2,22 @@ name: playwright
on: [pull_request] on: [pull_request]
jobs: jobs:
test: test:
runs-on: ubuntu-18.04 runs-on: ubuntu-latest
container:
image: mcr.microsoft.com/playwright:v1.26.0-focal
steps: steps:
- run: apt-get update && apt-get install git-lfs
- uses: actions/checkout@v3 - uses: actions/checkout@v3
with:
lfs: 'true'
- uses: actions/setup-node@v2 - uses: actions/setup-node@v2
with: with:
node-version: '16' node-version: '16'
- name: Install dependencies - name: Install dependencies
run: yarn install run: yarn
- name: Install Playwright
run: yarn add playwright
- name: Run your tests - name: Run your tests
run: yarn test-ct run: HOME=/root yarn test-ct
- name: Upload test results - name: Upload test results
if: always() if: always()
uses: actions/upload-artifact@v2 uses: actions/upload-artifact@v2
......
...@@ -14,7 +14,8 @@ ...@@ -14,7 +14,8 @@
"lint:eslint": "./node_modules/.bin/eslint . --ext .js,.jsx,.ts,.tsx", "lint:eslint": "./node_modules/.bin/eslint . --ext .js,.jsx,.ts,.tsx",
"prepare": "husky install", "prepare": "husky install",
"format-svg": "./node_modules/.bin/svgo -r ./icons", "format-svg": "./node_modules/.bin/svgo -r ./icons",
"test-ct": "playwright test -c playwright-ct.config.ts" "test-ct": "playwright test -c playwright-ct.config.ts",
"test-docker": " docker run --rm --network host -v $(pwd):/work/ -w /work/ -it mcr.microsoft.com/playwright:v1.26.0-focal yarn test-ct"
}, },
"dependencies": { "dependencies": {
"@chakra-ui/react": "2.3.1", "@chakra-ui/react": "2.3.1",
......
...@@ -36,6 +36,8 @@ const config: PlaywrightTestConfig = { ...@@ -36,6 +36,8 @@ const config: PlaywrightTestConfig = {
/* Port to use for Playwright component endpoint. */ /* Port to use for Playwright component endpoint. */
ctPort: 3100, ctPort: 3100,
headless: true,
}, },
/* Configure projects for major browsers */ /* Configure projects for major browsers */
......
// Import styles, initialize component theme here. // Import styles, initialize component theme here.
// import '../src/common.css'; // import '../src/common.css';
export {};
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment