diff --git a/playwright.config.js b/playwright.config.js index f8c7812c..63d7cefb 100644 --- a/playwright.config.js +++ b/playwright.config.js @@ -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 @@ -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). */ diff --git a/src/il-accordion/il-accordion.spec.js b/src/il-accordion/il-accordion.spec.js new file mode 100644 index 00000000..93f29e8c --- /dev/null +++ b/src/il-accordion/il-accordion.spec.js @@ -0,0 +1,3 @@ +import { test } from '@playwright/test'; + +test('accordion test', () => test.fail()); \ No newline at end of file