Skip to content

Commit

Permalink
Merge pull request #259 from mediamonks/replace-playwright-with-story…
Browse files Browse the repository at this point in the history
…book-test-runner

Replace playwright with storybook test runner
  • Loading branch information
leroykorterink authored Nov 10, 2023
2 parents d909a99 + b11b45a commit dbd3850
Show file tree
Hide file tree
Showing 18 changed files with 29,976 additions and 18,086 deletions.
11 changes: 2 additions & 9 deletions .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,22 +12,15 @@ on:
jobs:
build:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [16.x, 18.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/

steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
node-version: lts/*
cache: 'npm'
- run: npm ci
- run: npx playwright install --with-deps
- run: npm run lint
- run: npm run build
- run: npm run test
- run: npx playwright install --with-deps
- run: npm run playwright
4 changes: 0 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,3 @@ yarn-error.log*
# storybook output
/.docs

# Playwright output
/test-results/
/playwright-report/
/playwright/.cache/
2 changes: 1 addition & 1 deletion .node-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
18
20
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
18
20
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ dist
public
test-results
plop-templates
.docs
11 changes: 11 additions & 0 deletions .storybook/manager.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import { addons } from '@storybook/manager-api';
import { create } from '@storybook/theming/create';

addons.setConfig({
theme: create({
base: 'dark',
brandImage: 'logo.svg',
brandUrl: 'https://monks.com',
brandTitle: 'Frontend.Monks',
}),
});
8 changes: 0 additions & 8 deletions CHANGELOG.md

This file was deleted.

Loading

0 comments on commit dbd3850

Please sign in to comment.