Skip to content
This repository has been archived by the owner on Dec 17, 2024. It is now read-only.

Commit

Permalink
Add failing test
Browse files Browse the repository at this point in the history
  • Loading branch information
mattsharkey committed Jan 25, 2024
1 parent 8e283c0 commit 72a0930
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 4 additions & 1 deletion playwright.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
// @ts-check
import { defineConfig, devices } from '@playwright/test';

const htmlReporter = ['html'];
const jsonReporter = ['json', { outputFile: 'var/test-results.json' }]

/**
* Read environment variables from file.
* https://github.com/motdotla/dotenv
Expand Down Expand Up @@ -31,7 +34,7 @@ module.exports = defineConfig({
/* Opt out of parallel tests on CI. */
workers: process.env.CI ? 1 : undefined,
/* Reporter to use. See https://playwright.dev/docs/test-reporters */
reporter: 'html',
reporter: process.env.CI ? jsonReporter : [htmlReporter, jsonReporter],
/* Shared settings for all the projects below. See https://playwright.dev/docs/api/class-testoptions. */
use: {
/* Maximum time each action such as `click()` can take. Defaults to 0 (no limit). */
Expand Down
3 changes: 3 additions & 0 deletions src/il-accordion/il-accordion.spec.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import { test } from '@playwright/test';

test('accordion test', () => test.fail());

0 comments on commit 72a0930

Please sign in to comment.