Skip to content

Commit 943bfad

Browse files
committed
Upgraded to Serenity/JS 3.15.0
1 parent 50fe33b commit 943bfad

File tree

4 files changed

+122
-123
lines changed

4 files changed

+122
-123
lines changed

features/authentication/form_authentication.feature renamed to features/authentication/form-based_authentication.feature

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,7 @@ Feature: Form-Based Authentication
1212
["The Internet"](https://the-internet.herokuapp.com/) is an example application
1313
that captures prominent and ugly functionality found on the web.
1414
Perfect for writing automated acceptance tests against 😎
15-
16-
Note: With **Serenity/JS** you can use [Markdown](https://en.wikipedia.org/wiki/Markdown)
15+
With **Serenity/JS** you can use [Markdown](https://en.wikipedia.org/wiki/Markdown)
1716
to better describe each `Feature` and `Scenario`.
1817

1918
When she logs in using "<username>" and "<password>"

features/support/serenity.config.ts

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
11
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';
63
import * as playwright from 'playwright';
74

85
import { Actors } from '../../test';
6+
import * as path from "path";
97

108
const timeouts = {
119
cucumber: {
@@ -44,11 +42,13 @@ BeforeAll(async () => {
4442

4543
// Configure Serenity/JS reporting services
4644
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') } ],
5252
],
5353

5454
cueTimeout: timeouts.serenity.cueTimeout,

0 commit comments

Comments
 (0)