|
1 | 1 | import { AfterAll, BeforeAll, setDefaultTimeout } from '@cucumber/cucumber';
|
2 |
| -import { ConsoleReporter } from '@serenity-js/console-reporter'; |
3 |
| -import { ArtifactArchiver, configure, Duration } from '@serenity-js/core'; |
4 |
| -import { SerenityBDDReporter } from '@serenity-js/serenity-bdd'; |
5 |
| -import { Photographer, TakePhotosOfInteractions /* TakePhotosOfFailures */ } from '@serenity-js/web'; |
| 2 | +import { configure, Duration } from '@serenity-js/core'; |
6 | 3 | import * as playwright from 'playwright';
|
7 | 4 |
|
8 | 5 | import { Actors } from '../../test';
|
| 6 | +import * as path from "path"; |
9 | 7 |
|
10 | 8 | const timeouts = {
|
11 | 9 | cucumber: {
|
@@ -44,11 +42,13 @@ BeforeAll(async () => {
|
44 | 42 |
|
45 | 43 | // Configure Serenity/JS reporting services
|
46 | 44 | crew: [
|
47 |
| - ArtifactArchiver.storingArtifactsAt('./target/site/serenity'), |
48 |
| - new SerenityBDDReporter(), |
49 |
| - ConsoleReporter.forDarkTerminals(), |
50 |
| - Photographer.whoWill(TakePhotosOfInteractions), // capture screenshots of all the interactions; slower but more comprehensive |
51 |
| - // Photographer.whoWill(TakePhotosOfFailures), // capture screenshots of failed interactions; much faster |
| 45 | + [ '@serenity-js/console-reporter', { theme: 'auto' } ], |
| 46 | + [ '@serenity-js/web:Photographer', { |
| 47 | + // strategy: 'TakePhotosOfInteractions', // capture screenshots of all the interactions; slower but more comprehensive |
| 48 | + strategy: 'TakePhotosOfFailures', // capture screenshots of failed interactions; much faster |
| 49 | + } ], |
| 50 | + [ '@serenity-js/core:ArtifactArchiver', { outputDirectory: path.resolve(__dirname, '../../target/site/serenity') } ], |
| 51 | + [ '@serenity-js/serenity-bdd', { specDirectory: path.resolve(__dirname, '../../features') } ], |
52 | 52 | ],
|
53 | 53 |
|
54 | 54 | cueTimeout: timeouts.serenity.cueTimeout,
|
|
0 commit comments