123456789101112131415161718192021222324252627282930313233 |
- import { ConsoleReporter } from '@serenity-js/console-reporter';
- import { ArtifactArchiver } from '@serenity-js/core';
- import { SerenityBDDReporter } from '@serenity-js/serenity-bdd';
- import { Photographer, TakePhotosOfFailures, WebdriverIOConfig } from '@serenity-js/webdriverio';
- import { Actors } from './samples/src/Actors';
- export const config: WebdriverIOConfig = {
- headless: false,
- framework: '@serenity-js/webdriverio',
- serenity: {
- actors: new Actors(),
- crew: [
- ArtifactArchiver.storingArtifactsAt('./target/test-result'),
- // Photographer.whoWill(TakePhotosOfInteractions), // slower execution, more comprehensive reports
- Photographer.whoWill(TakePhotosOfFailures), // fast execution, screenshots only when tests fail
- ConsoleReporter.forDarkTerminals(),
- new SerenityBDDReporter(),
- ],
- },
- specs: ['./samples/**/*.spec.ts'],
- runner: 'local',
- capabilities: [
- {
- browserName: 'chrome',
- },
- ],
- };
|