import {TakePhotosOfFailures} from '@serenity-js/protractor/lib/stage/crew/photographer/strategies'
TakePhotosOfFailures
Configures the Photographer to take photos (a.k.a. screenshots) when the Interaction performed by the Actor in the spotlight results in an error.
This strategy works best when you are interested in the screenshots only when the a fails.
Extends:
src/stage/crew/photographer/strategies/PhotoTakingStrategy.js~PhotoTakingStrategy → TakePhotosOfFailures
Implements:
Method Summary
Protected Methods | ||
protected |
photoNameFor(event: InteractionFinished): string |
|
protected |
shouldTakeAPhotoOf(event: DomainEvent): boolean |
Protected Methods
protected photoNameFor(event: InteractionFinished): string source
Params:
Name | Type | Attribute | Description |
event | InteractionFinished |
Returns:
string |
protected shouldTakeAPhotoOf(event: DomainEvent): boolean source
Params:
Name | Type | Attribute | Description |
event | DomainEvent |
Returns:
boolean |