Skip to content

Commit

Permalink
this was a bad idea
Browse files Browse the repository at this point in the history
I don't feel ok with promoting this use of abilities. It shouldn't be in the framework imho.
  • Loading branch information
globalworming committed Jun 30, 2020
1 parent 4d9cd4d commit e0ec9bd
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@

import static net.serenitybdd.screenplay.Tasks.instrumented;

/**
* @deprecated The screenplay model states that abilities enable interactions. Using abilities to switch test execution
* paths is a bit of a stretch. Switching based on e.g. parameters, environment variables or actor memories is more
* reasonable
*/
public class PerformBasedOnAbility implements Performable, IsSilent {

private final PossibleAction[] possibleActions;
Expand Down

0 comments on commit e0ec9bd

Please sign in to comment.