wdio.conf.ts 979 B

123456789101112131415161718192021222324252627282930313233
  1. import { ConsoleReporter } from '@serenity-js/console-reporter';
  2. import { ArtifactArchiver } from '@serenity-js/core';
  3. import { SerenityBDDReporter } from '@serenity-js/serenity-bdd';
  4. import { Photographer, TakePhotosOfFailures, WebdriverIOConfig } from '@serenity-js/webdriverio';
  5. import { Actors } from './samples/src/Actors';
  6. export const config: WebdriverIOConfig = {
  7. headless: false,
  8. framework: '@serenity-js/webdriverio',
  9. serenity: {
  10. actors: new Actors(),
  11. crew: [
  12. ArtifactArchiver.storingArtifactsAt('./target/test-result'),
  13. // Photographer.whoWill(TakePhotosOfInteractions), // slower execution, more comprehensive reports
  14. Photographer.whoWill(TakePhotosOfFailures), // fast execution, screenshots only when tests fail
  15. ConsoleReporter.forDarkTerminals(),
  16. new SerenityBDDReporter(),
  17. ],
  18. },
  19. specs: ['./samples/**/*.spec.ts'],
  20. runner: 'local',
  21. capabilities: [
  22. {
  23. browserName: 'chrome',
  24. },
  25. ],
  26. };