Skip to content

Commit

Permalink
Simplified configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
jan-molak committed Aug 1, 2023
1 parent 375a6ae commit 911d0b8
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 28 deletions.
10 changes: 0 additions & 10 deletions src/Actors.ts

This file was deleted.

1 change: 0 additions & 1 deletion src/index.ts

This file was deleted.

24 changes: 7 additions & 17 deletions wdio.conf.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,4 @@
import { ConsoleReporter } from '@serenity-js/console-reporter';
import { ArtifactArchiver } from '@serenity-js/core';
import { SerenityBDDReporter } from '@serenity-js/serenity-bdd';
import { Photographer, TakePhotosOfInteractions } from '@serenity-js/web';
import { WebdriverIOConfig } from '@serenity-js/webdriverio';

import { Actors } from './src';
import {WebdriverIOConfig} from '@serenity-js/webdriverio';

export const config: WebdriverIOConfig = {

Expand All @@ -17,22 +11,18 @@ export const config: WebdriverIOConfig = {
framework: '@serenity-js/webdriverio',

serenity: {
// Use custom Actors class
// see: https://serenity-js.org/modules/core/class/src/stage/Cast.ts~Cast.html
actors: new Actors(),

// Use Cucumber.js test runner adapter
// Use Mocha.js test runner adapter
// see: https://serenity-js.org/modules/cucumber/
runner: 'mocha',

// Configure reporting services
// see: https://serenity-js.org/handbook/reporting/
crew: [
ArtifactArchiver.storingArtifactsAt('./target/site/serenity'),
Photographer.whoWill(TakePhotosOfInteractions), // slower execution, more comprehensive reports
// Photographer.whoWill(TakePhotosOfFailures), // fast execution, screenshots only when tests fail
ConsoleReporter.forDarkTerminals(),
new SerenityBDDReporter(),
'@serenity-js/console-reporter',
'@serenity-js/serenity-bdd',
[ '@serenity-js/web:Photographer', { strategy: 'TakePhotosOfInteractions' } ],
// [ '@serenity-js/web:Photographer', { strategy: 'TakePhotosOfFailures' } ],
[ '@serenity-js/core:ArtifactArchiver', { outputDirectory: 'target/site/serenity' } ],
]
},

Expand Down

0 comments on commit 911d0b8

Please sign in to comment.