@serenity-js/core 3.4.2 → 3.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +16 -0
- package/lib/Serenity.d.ts +7 -6
- package/lib/Serenity.d.ts.map +1 -1
- package/lib/Serenity.js +1 -1
- package/lib/Serenity.js.map +1 -1
- package/lib/adapter/TestRunnerAdapter.d.ts +1 -1
- package/lib/adapter/TestRunnerAdapter.d.ts.map +1 -1
- package/lib/config/SerenityConfig.d.ts +5 -5
- package/lib/config/SerenityConfig.d.ts.map +1 -1
- package/lib/errors/ErrorFactory.d.ts +3 -3
- package/lib/errors/ErrorFactory.d.ts.map +1 -1
- package/lib/errors/ErrorFactory.js.map +1 -1
- package/lib/errors/ErrorOptions.d.ts +2 -2
- package/lib/errors/ErrorOptions.d.ts.map +1 -1
- package/lib/errors/ErrorSerialiser.d.ts +1 -1
- package/lib/errors/ErrorSerialiser.d.ts.map +1 -1
- package/lib/errors/ErrorSerialiser.js +1 -1
- package/lib/errors/ErrorSerialiser.js.map +1 -1
- package/lib/errors/RaiseErrors.d.ts +3 -3
- package/lib/errors/RaiseErrors.d.ts.map +1 -1
- package/lib/errors/diff/AnsiDiffFormatter.d.ts +2 -2
- package/lib/errors/diff/AnsiDiffFormatter.d.ts.map +1 -1
- package/lib/errors/diff/AnsiDiffFormatter.js.map +1 -1
- package/lib/errors/diff/NoOpDiffFormatter.d.ts +1 -1
- package/lib/errors/diff/NoOpDiffFormatter.d.ts.map +1 -1
- package/lib/errors/model/AssertionError.d.ts +1 -1
- package/lib/errors/model/AssertionError.d.ts.map +1 -1
- package/lib/errors/model/ConfigurationError.d.ts +1 -1
- package/lib/errors/model/ConfigurationError.d.ts.map +1 -1
- package/lib/errors/model/ImplementationPendingError.d.ts +1 -1
- package/lib/errors/model/ImplementationPendingError.d.ts.map +1 -1
- package/lib/errors/model/ListItemNotFoundError.d.ts +1 -1
- package/lib/errors/model/ListItemNotFoundError.d.ts.map +1 -1
- package/lib/errors/model/LogicError.d.ts +1 -1
- package/lib/errors/model/LogicError.d.ts.map +1 -1
- package/lib/errors/model/OperationInterruptedError.d.ts +1 -1
- package/lib/errors/model/OperationInterruptedError.d.ts.map +1 -1
- package/lib/errors/model/TestCompromisedError.d.ts +1 -1
- package/lib/errors/model/TestCompromisedError.d.ts.map +1 -1
- package/lib/errors/model/TimeoutExpiredError.d.ts +1 -1
- package/lib/errors/model/TimeoutExpiredError.d.ts.map +1 -1
- package/lib/errors/model/UnknownError.d.ts +1 -1
- package/lib/errors/model/UnknownError.d.ts.map +1 -1
- package/lib/events/ActivityFinished.d.ts +2 -2
- package/lib/events/ActivityFinished.d.ts.map +1 -1
- package/lib/events/ActivityRelatedArtifactArchived.d.ts +3 -2
- package/lib/events/ActivityRelatedArtifactArchived.d.ts.map +1 -1
- package/lib/events/ActivityRelatedArtifactArchived.js.map +1 -1
- package/lib/events/ActivityRelatedArtifactGenerated.d.ts +1 -1
- package/lib/events/ActivityRelatedArtifactGenerated.d.ts.map +1 -1
- package/lib/events/ActivityRelatedArtifactGenerated.js.map +1 -1
- package/lib/events/ActivityStarts.d.ts +2 -2
- package/lib/events/ActivityStarts.d.ts.map +1 -1
- package/lib/events/ArtifactArchived.d.ts +3 -2
- package/lib/events/ArtifactArchived.d.ts.map +1 -1
- package/lib/events/ArtifactArchived.js.map +1 -1
- package/lib/events/ArtifactGenerated.d.ts +1 -1
- package/lib/events/ArtifactGenerated.d.ts.map +1 -1
- package/lib/events/ArtifactGenerated.js.map +1 -1
- package/lib/events/AsyncOperationAborted.d.ts +1 -1
- package/lib/events/AsyncOperationAborted.d.ts.map +1 -1
- package/lib/events/AsyncOperationAborted.js.map +1 -1
- package/lib/events/AsyncOperationAttempted.d.ts +1 -1
- package/lib/events/AsyncOperationAttempted.d.ts.map +1 -1
- package/lib/events/AsyncOperationAttempted.js.map +1 -1
- package/lib/events/AsyncOperationCompleted.d.ts +1 -1
- package/lib/events/AsyncOperationCompleted.d.ts.map +1 -1
- package/lib/events/AsyncOperationCompleted.js.map +1 -1
- package/lib/events/AsyncOperationFailed.d.ts +1 -1
- package/lib/events/AsyncOperationFailed.d.ts.map +1 -1
- package/lib/events/AsyncOperationFailed.js.map +1 -1
- package/lib/events/BusinessRuleDetected.d.ts +1 -1
- package/lib/events/BusinessRuleDetected.d.ts.map +1 -1
- package/lib/events/BusinessRuleDetected.js.map +1 -1
- package/lib/events/EmitsDomainEvents.d.ts +4 -5
- package/lib/events/EmitsDomainEvents.d.ts.map +1 -1
- package/lib/events/FeatureNarrativeDetected.d.ts +1 -1
- package/lib/events/FeatureNarrativeDetected.d.ts.map +1 -1
- package/lib/events/FeatureNarrativeDetected.js.map +1 -1
- package/lib/events/InteractionFinished.d.ts +1 -1
- package/lib/events/InteractionFinished.d.ts.map +1 -1
- package/lib/events/InteractionFinished.js.map +1 -1
- package/lib/events/InteractionStarts.d.ts +1 -1
- package/lib/events/InteractionStarts.d.ts.map +1 -1
- package/lib/events/RetryableSceneDetected.d.ts +1 -1
- package/lib/events/RetryableSceneDetected.d.ts.map +1 -1
- package/lib/events/RetryableSceneDetected.js.map +1 -1
- package/lib/events/SceneBackgroundDetected.d.ts +2 -2
- package/lib/events/SceneBackgroundDetected.d.ts.map +1 -1
- package/lib/events/SceneBackgroundDetected.js.map +1 -1
- package/lib/events/SceneDescriptionDetected.d.ts +1 -1
- package/lib/events/SceneDescriptionDetected.d.ts.map +1 -1
- package/lib/events/SceneDescriptionDetected.js.map +1 -1
- package/lib/events/SceneFinished.d.ts +1 -1
- package/lib/events/SceneFinished.d.ts.map +1 -1
- package/lib/events/SceneFinished.js.map +1 -1
- package/lib/events/SceneFinishes.d.ts +1 -1
- package/lib/events/SceneFinishes.d.ts.map +1 -1
- package/lib/events/SceneFinishes.js.map +1 -1
- package/lib/events/SceneParametersDetected.d.ts +1 -1
- package/lib/events/SceneParametersDetected.d.ts.map +1 -1
- package/lib/events/SceneParametersDetected.js.map +1 -1
- package/lib/events/SceneSequenceDetected.d.ts +1 -1
- package/lib/events/SceneSequenceDetected.d.ts.map +1 -1
- package/lib/events/SceneSequenceDetected.js.map +1 -1
- package/lib/events/SceneStarts.d.ts +1 -1
- package/lib/events/SceneStarts.d.ts.map +1 -1
- package/lib/events/SceneStarts.js.map +1 -1
- package/lib/events/SceneTagged.d.ts +1 -1
- package/lib/events/SceneTagged.d.ts.map +1 -1
- package/lib/events/SceneTagged.js.map +1 -1
- package/lib/events/SceneTemplateDetected.d.ts +1 -1
- package/lib/events/SceneTemplateDetected.d.ts.map +1 -1
- package/lib/events/SceneTemplateDetected.js.map +1 -1
- package/lib/events/TaskFinished.d.ts +1 -1
- package/lib/events/TaskFinished.d.ts.map +1 -1
- package/lib/events/TaskFinished.js.map +1 -1
- package/lib/events/TaskStarts.d.ts +1 -1
- package/lib/events/TaskStarts.d.ts.map +1 -1
- package/lib/events/TestRunFinished.d.ts +1 -1
- package/lib/events/TestRunFinished.d.ts.map +1 -1
- package/lib/events/TestRunFinished.js.map +1 -1
- package/lib/events/TestRunnerDetected.d.ts +1 -1
- package/lib/events/TestRunnerDetected.d.ts.map +1 -1
- package/lib/events/TestRunnerDetected.js.map +1 -1
- package/lib/events/TestSuiteFinished.d.ts +1 -1
- package/lib/events/TestSuiteFinished.d.ts.map +1 -1
- package/lib/events/TestSuiteFinished.js.map +1 -1
- package/lib/events/TestSuiteStarts.d.ts +1 -1
- package/lib/events/TestSuiteStarts.d.ts.map +1 -1
- package/lib/events/TestSuiteStarts.js.map +1 -1
- package/lib/instance.d.ts +3 -3
- package/lib/instance.d.ts.map +1 -1
- package/lib/instance.js.map +1 -1
- package/lib/io/FileSystem.d.ts +2 -2
- package/lib/io/FileSystem.d.ts.map +1 -1
- package/lib/io/FileSystemLocation.d.ts +2 -1
- package/lib/io/FileSystemLocation.d.ts.map +1 -1
- package/lib/io/FileSystemLocation.js.map +1 -1
- package/lib/io/Path.js +1 -1
- package/lib/io/Path.js.map +1 -1
- package/lib/io/format.d.ts +1 -1
- package/lib/io/format.d.ts.map +1 -1
- package/lib/io/inspected.d.ts +1 -1
- package/lib/io/inspected.d.ts.map +1 -1
- package/lib/io/inspected.js.map +1 -1
- package/lib/io/loader/ClassDescriptionParser.d.ts +2 -2
- package/lib/io/loader/ClassDescriptionParser.d.ts.map +1 -1
- package/lib/io/loader/ClassDescriptionParser.js +1 -1
- package/lib/io/loader/ClassDescriptionParser.js.map +1 -1
- package/lib/io/loader/ClassDescriptor.d.ts +1 -1
- package/lib/io/loader/ClassDescriptor.d.ts.map +1 -1
- package/lib/io/loader/ClassLoader.d.ts +3 -3
- package/lib/io/loader/ClassLoader.d.ts.map +1 -1
- package/lib/io/stringified.d.ts +1 -1
- package/lib/io/stringified.d.ts.map +1 -1
- package/lib/model/ActivityDetails.d.ts +2 -1
- package/lib/model/ActivityDetails.d.ts.map +1 -1
- package/lib/model/ActivityDetails.js.map +1 -1
- package/lib/model/Artifact.d.ts +2 -1
- package/lib/model/Artifact.d.ts.map +1 -1
- package/lib/model/Artifact.js.map +1 -1
- package/lib/model/BusinessRule.d.ts +2 -1
- package/lib/model/BusinessRule.d.ts.map +1 -1
- package/lib/model/BusinessRule.js.map +1 -1
- package/lib/model/ScenarioDetails.d.ts +2 -1
- package/lib/model/ScenarioDetails.d.ts.map +1 -1
- package/lib/model/ScenarioDetails.js.map +1 -1
- package/lib/model/ScenarioParameters.d.ts +2 -1
- package/lib/model/ScenarioParameters.d.ts.map +1 -1
- package/lib/model/ScenarioParameters.js.map +1 -1
- package/lib/model/TestSuiteDetails.d.ts +2 -1
- package/lib/model/TestSuiteDetails.d.ts.map +1 -1
- package/lib/model/TestSuiteDetails.js.map +1 -1
- package/lib/model/artifacts/HTTPRequestResponse.d.ts +1 -1
- package/lib/model/artifacts/HTTPRequestResponse.d.ts.map +1 -1
- package/lib/model/artifacts/JSONData.d.ts +1 -1
- package/lib/model/artifacts/JSONData.d.ts.map +1 -1
- package/lib/model/artifacts/TestReport.d.ts +1 -1
- package/lib/model/artifacts/TestReport.d.ts.map +1 -1
- package/lib/model/outcomes.d.ts +3 -2
- package/lib/model/outcomes.d.ts.map +1 -1
- package/lib/model/outcomes.js +8 -9
- package/lib/model/outcomes.js.map +1 -1
- package/lib/model/tags/ArbitraryTag.js +1 -1
- package/lib/model/tags/ArbitraryTag.js.map +1 -1
- package/lib/model/tags/BrowserTag.d.ts +1 -1
- package/lib/model/tags/BrowserTag.d.ts.map +1 -1
- package/lib/model/tags/BrowserTag.js +1 -1
- package/lib/model/tags/BrowserTag.js.map +1 -1
- package/lib/model/tags/CapabilityTag.js +1 -1
- package/lib/model/tags/CapabilityTag.js.map +1 -1
- package/lib/model/tags/ExecutionRetriedTag.d.ts +1 -1
- package/lib/model/tags/ExecutionRetriedTag.d.ts.map +1 -1
- package/lib/model/tags/ExecutionRetriedTag.js +1 -1
- package/lib/model/tags/ExecutionRetriedTag.js.map +1 -1
- package/lib/model/tags/FeatureTag.js +1 -1
- package/lib/model/tags/FeatureTag.js.map +1 -1
- package/lib/model/tags/IssueTag.js +1 -1
- package/lib/model/tags/IssueTag.js.map +1 -1
- package/lib/model/tags/ManualTag.js +1 -1
- package/lib/model/tags/ManualTag.js.map +1 -1
- package/lib/model/tags/PlatformTag.d.ts +1 -1
- package/lib/model/tags/PlatformTag.d.ts.map +1 -1
- package/lib/model/tags/PlatformTag.js +1 -1
- package/lib/model/tags/PlatformTag.js.map +1 -1
- package/lib/model/tags/Tag.d.ts +2 -1
- package/lib/model/tags/Tag.d.ts.map +1 -1
- package/lib/model/tags/Tag.js.map +1 -1
- package/lib/model/tags/Tags.d.ts +1 -1
- package/lib/model/tags/Tags.d.ts.map +1 -1
- package/lib/model/tags/Tags.js +1 -1
- package/lib/model/tags/Tags.js.map +1 -1
- package/lib/model/tags/ThemeTag.js +1 -1
- package/lib/model/tags/ThemeTag.js.map +1 -1
- package/lib/screenplay/Activity.d.ts +3 -3
- package/lib/screenplay/Activity.d.ts.map +1 -1
- package/lib/screenplay/Activity.js +1 -1
- package/lib/screenplay/Activity.js.map +1 -1
- package/lib/screenplay/Actor.d.ts +16 -9
- package/lib/screenplay/Actor.d.ts.map +1 -1
- package/lib/screenplay/Actor.js +6 -0
- package/lib/screenplay/Actor.js.map +1 -1
- package/lib/screenplay/Answerable.d.ts +1 -1
- package/lib/screenplay/Answerable.d.ts.map +1 -1
- package/lib/screenplay/Answered.d.ts +1 -1
- package/lib/screenplay/Answered.d.ts.map +1 -1
- package/lib/screenplay/Interaction.d.ts +3 -3
- package/lib/screenplay/Interaction.d.ts.map +1 -1
- package/lib/screenplay/Optional.d.ts +1 -1
- package/lib/screenplay/Optional.d.ts.map +1 -1
- package/lib/screenplay/Question.d.ts +6 -6
- package/lib/screenplay/Question.d.ts.map +1 -1
- package/lib/screenplay/RecursivelyAnswered.d.ts +1 -1
- package/lib/screenplay/RecursivelyAnswered.d.ts.map +1 -1
- package/lib/screenplay/Task.d.ts +1 -1
- package/lib/screenplay/Task.d.ts.map +1 -1
- package/lib/screenplay/WithAnswerableProperties.d.ts +2 -2
- package/lib/screenplay/WithAnswerableProperties.d.ts.map +1 -1
- package/lib/screenplay/abilities/Ability.d.ts +2 -2
- package/lib/screenplay/abilities/Ability.d.ts.map +1 -1
- package/lib/screenplay/abilities/AbilityType.d.ts +1 -1
- package/lib/screenplay/abilities/AbilityType.d.ts.map +1 -1
- package/lib/screenplay/abilities/AnswerQuestions.d.ts +3 -3
- package/lib/screenplay/abilities/AnswerQuestions.d.ts.map +1 -1
- package/lib/screenplay/abilities/CanHaveAbilities.d.ts +2 -2
- package/lib/screenplay/abilities/CanHaveAbilities.d.ts.map +1 -1
- package/lib/screenplay/abilities/PerformActivities.d.ts +4 -4
- package/lib/screenplay/abilities/PerformActivities.d.ts.map +1 -1
- package/lib/screenplay/abilities/PerformActivities.js.map +1 -1
- package/lib/screenplay/abilities/UsesAbilities.d.ts +2 -2
- package/lib/screenplay/abilities/UsesAbilities.d.ts.map +1 -1
- package/lib/screenplay/activities/PerformsActivities.d.ts +1 -1
- package/lib/screenplay/activities/PerformsActivities.d.ts.map +1 -1
- package/lib/screenplay/artifacts/CollectsArtifacts.d.ts +1 -1
- package/lib/screenplay/artifacts/CollectsArtifacts.d.ts.map +1 -1
- package/lib/screenplay/debugging/Debug.d.ts +6 -6
- package/lib/screenplay/debugging/Debug.d.ts.map +1 -1
- package/lib/screenplay/debugging/Log.d.ts +4 -4
- package/lib/screenplay/debugging/Log.d.ts.map +1 -1
- package/lib/screenplay/notes/ChainableSetter.d.ts +2 -2
- package/lib/screenplay/notes/ChainableSetter.d.ts.map +1 -1
- package/lib/screenplay/notes/NotepadAdapter.d.ts +4 -4
- package/lib/screenplay/notes/NotepadAdapter.d.ts.map +1 -1
- package/lib/screenplay/notes/NotepadAdapter.js.map +1 -1
- package/lib/screenplay/notes/notes.d.ts +1 -1
- package/lib/screenplay/notes/notes.d.ts.map +1 -1
- package/lib/screenplay/questions/AnswersQuestions.d.ts +1 -1
- package/lib/screenplay/questions/AnswersQuestions.d.ts.map +1 -1
- package/lib/screenplay/questions/Check.d.ts +5 -5
- package/lib/screenplay/questions/Check.d.ts.map +1 -1
- package/lib/screenplay/questions/Expectation.d.ts +2 -2
- package/lib/screenplay/questions/Expectation.d.ts.map +1 -1
- package/lib/screenplay/questions/Expectation.js.map +1 -1
- package/lib/screenplay/questions/List.d.ts +8 -7
- package/lib/screenplay/questions/List.d.ts.map +1 -1
- package/lib/screenplay/questions/List.js.map +1 -1
- package/lib/screenplay/questions/MetaQuestion.d.ts +2 -2
- package/lib/screenplay/questions/MetaQuestion.d.ts.map +1 -1
- package/lib/screenplay/questions/Unanswered.d.ts +2 -1
- package/lib/screenplay/questions/Unanswered.d.ts.map +1 -1
- package/lib/screenplay/questions/Unanswered.js.map +1 -1
- package/lib/screenplay/questions/expectations/ExpectationDetails.d.ts +2 -1
- package/lib/screenplay/questions/expectations/ExpectationDetails.d.ts.map +1 -1
- package/lib/screenplay/questions/expectations/ExpectationDetails.js.map +1 -1
- package/lib/screenplay/questions/expectations/ExpectationOutcome.d.ts +1 -1
- package/lib/screenplay/questions/expectations/ExpectationOutcome.d.ts.map +1 -1
- package/lib/screenplay/questions/q.d.ts +2 -2
- package/lib/screenplay/questions/q.d.ts.map +1 -1
- package/lib/screenplay/questions/q.js.map +1 -1
- package/lib/screenplay/time/TellsTime.d.ts +19 -0
- package/lib/screenplay/time/TellsTime.d.ts.map +1 -0
- package/lib/screenplay/time/TellsTime.js +3 -0
- package/lib/screenplay/time/TellsTime.js.map +1 -0
- package/lib/screenplay/time/abilities/ScheduleWork.d.ts +3 -2
- package/lib/screenplay/time/abilities/ScheduleWork.d.ts.map +1 -1
- package/lib/screenplay/time/abilities/ScheduleWork.js.map +1 -1
- package/lib/screenplay/time/activities/Wait.d.ts +3 -3
- package/lib/screenplay/time/activities/Wait.d.ts.map +1 -1
- package/lib/screenplay/time/activities/Wait.js +1 -1
- package/lib/screenplay/time/activities/Wait.js.map +1 -1
- package/lib/screenplay/time/index.d.ts +1 -0
- package/lib/screenplay/time/index.d.ts.map +1 -1
- package/lib/screenplay/time/index.js +1 -0
- package/lib/screenplay/time/index.js.map +1 -1
- package/lib/screenplay/time/models/Clock.js +1 -1
- package/lib/screenplay/time/models/Clock.js.map +1 -1
- package/lib/screenplay/time/models/DelayedCallback.d.ts +1 -1
- package/lib/screenplay/time/models/DelayedCallback.d.ts.map +1 -1
- package/lib/screenplay/time/models/Duration.d.ts +2 -1
- package/lib/screenplay/time/models/Duration.d.ts.map +1 -1
- package/lib/screenplay/time/models/Duration.js +1 -1
- package/lib/screenplay/time/models/Duration.js.map +1 -1
- package/lib/screenplay/time/models/RepeatUntilLimits.d.ts +1 -1
- package/lib/screenplay/time/models/RepeatUntilLimits.d.ts.map +1 -1
- package/lib/screenplay/time/models/Scheduler.d.ts +3 -3
- package/lib/screenplay/time/models/Scheduler.d.ts.map +1 -1
- package/lib/stage/Cast.d.ts +1 -1
- package/lib/stage/Cast.d.ts.map +1 -1
- package/lib/stage/Extras.d.ts +2 -2
- package/lib/stage/Extras.d.ts.map +1 -1
- package/lib/stage/ListensToDomainEvents.d.ts +1 -1
- package/lib/stage/ListensToDomainEvents.d.ts.map +1 -1
- package/lib/stage/Stage.d.ts +9 -7
- package/lib/stage/Stage.d.ts.map +1 -1
- package/lib/stage/Stage.js +1 -1
- package/lib/stage/Stage.js.map +1 -1
- package/lib/stage/StageCrewMember.d.ts +2 -2
- package/lib/stage/StageCrewMember.d.ts.map +1 -1
- package/lib/stage/StageCrewMemberBuilder.d.ts +2 -2
- package/lib/stage/StageCrewMemberBuilder.d.ts.map +1 -1
- package/lib/stage/StageCrewMemberBuilderDependencies.d.ts +2 -2
- package/lib/stage/StageCrewMemberBuilderDependencies.d.ts.map +1 -1
- package/lib/stage/StageManager.d.ts +4 -4
- package/lib/stage/StageManager.d.ts.map +1 -1
- package/lib/stage/StageManager.js.map +1 -1
- package/lib/stage/crew/artifact-archiver/ArtifactArchiver.d.ts +3 -3
- package/lib/stage/crew/artifact-archiver/ArtifactArchiver.d.ts.map +1 -1
- package/lib/stage/crew/artifact-archiver/ArtifactArchiver.js.map +1 -1
- package/lib/stage/crew/stream-reporter/StreamReporter.d.ts +4 -4
- package/lib/stage/crew/stream-reporter/StreamReporter.d.ts.map +1 -1
- package/lib/stage/queues/DomainEventQueue.d.ts +2 -2
- package/lib/stage/queues/DomainEventQueue.d.ts.map +1 -1
- package/lib/stage/queues/DomainEventQueues.d.ts +2 -2
- package/lib/stage/queues/DomainEventQueues.d.ts.map +1 -1
- package/lib/stage/queues/DomainEventQueues.js.map +1 -1
- package/package.json +3 -3
- package/src/Serenity.ts +10 -8
- package/src/adapter/TestRunnerAdapter.ts +1 -1
- package/src/config/SerenityConfig.ts +5 -5
- package/src/errors/ErrorFactory.ts +5 -4
- package/src/errors/ErrorOptions.ts +2 -2
- package/src/errors/ErrorSerialiser.ts +2 -1
- package/src/errors/RaiseErrors.ts +3 -3
- package/src/errors/diff/AnsiDiffFormatter.ts +3 -2
- package/src/errors/diff/NoOpDiffFormatter.ts +1 -1
- package/src/errors/model/AssertionError.ts +1 -1
- package/src/errors/model/ConfigurationError.ts +1 -1
- package/src/errors/model/ImplementationPendingError.ts +1 -1
- package/src/errors/model/ListItemNotFoundError.ts +1 -1
- package/src/errors/model/LogicError.ts +1 -1
- package/src/errors/model/OperationInterruptedError.ts +1 -1
- package/src/errors/model/TestCompromisedError.ts +1 -1
- package/src/errors/model/TimeoutExpiredError.ts +1 -1
- package/src/errors/model/UnknownError.ts +1 -1
- package/src/events/ActivityFinished.ts +2 -2
- package/src/events/ActivityRelatedArtifactArchived.ts +4 -2
- package/src/events/ActivityRelatedArtifactGenerated.ts +4 -2
- package/src/events/ActivityStarts.ts +2 -2
- package/src/events/ArtifactArchived.ts +4 -2
- package/src/events/ArtifactGenerated.ts +4 -2
- package/src/events/AsyncOperationAborted.ts +2 -1
- package/src/events/AsyncOperationAttempted.ts +2 -1
- package/src/events/AsyncOperationCompleted.ts +2 -1
- package/src/events/AsyncOperationFailed.ts +2 -1
- package/src/events/BusinessRuleDetected.ts +2 -1
- package/src/events/EmitsDomainEvents.ts +4 -5
- package/src/events/FeatureNarrativeDetected.ts +2 -1
- package/src/events/InteractionFinished.ts +3 -2
- package/src/events/InteractionStarts.ts +1 -1
- package/src/events/RetryableSceneDetected.ts +2 -1
- package/src/events/SceneBackgroundDetected.ts +3 -2
- package/src/events/SceneDescriptionDetected.ts +2 -1
- package/src/events/SceneFinished.ts +4 -2
- package/src/events/SceneFinishes.ts +2 -1
- package/src/events/SceneParametersDetected.ts +2 -1
- package/src/events/SceneSequenceDetected.ts +2 -1
- package/src/events/SceneStarts.ts +2 -1
- package/src/events/SceneTagged.ts +2 -1
- package/src/events/SceneTemplateDetected.ts +2 -1
- package/src/events/TaskFinished.ts +3 -2
- package/src/events/TaskStarts.ts +1 -1
- package/src/events/TestRunFinished.ts +3 -2
- package/src/events/TestRunnerDetected.ts +2 -1
- package/src/events/TestSuiteFinished.ts +4 -2
- package/src/events/TestSuiteStarts.ts +2 -1
- package/src/instance.ts +4 -3
- package/src/io/FileSystem.ts +2 -2
- package/src/io/FileSystemLocation.ts +2 -1
- package/src/io/format.ts +1 -1
- package/src/io/inspected.ts +2 -1
- package/src/io/loader/ClassDescriptionParser.ts +2 -2
- package/src/io/loader/ClassDescriptor.ts +1 -1
- package/src/io/loader/ClassLoader.ts +3 -3
- package/src/io/stringified.ts +1 -1
- package/src/model/ActivityDetails.ts +2 -1
- package/src/model/Artifact.ts +2 -1
- package/src/model/BusinessRule.ts +2 -1
- package/src/model/ScenarioDetails.ts +2 -1
- package/src/model/ScenarioParameters.ts +2 -1
- package/src/model/TestSuiteDetails.ts +2 -1
- package/src/model/artifacts/HTTPRequestResponse.ts +1 -1
- package/src/model/artifacts/JSONData.ts +1 -1
- package/src/model/artifacts/TestReport.ts +1 -1
- package/src/model/outcomes.ts +4 -2
- package/src/model/tags/BrowserTag.ts +1 -1
- package/src/model/tags/ExecutionRetriedTag.ts +1 -1
- package/src/model/tags/PlatformTag.ts +1 -1
- package/src/model/tags/Tag.ts +2 -1
- package/src/model/tags/Tags.ts +2 -1
- package/src/screenplay/Activity.ts +3 -3
- package/src/screenplay/Actor.ts +25 -12
- package/src/screenplay/Answerable.ts +1 -1
- package/src/screenplay/Answered.ts +1 -1
- package/src/screenplay/Interaction.ts +3 -3
- package/src/screenplay/Optional.ts +1 -1
- package/src/screenplay/Question.ts +6 -6
- package/src/screenplay/RecursivelyAnswered.ts +1 -1
- package/src/screenplay/Task.ts +1 -1
- package/src/screenplay/WithAnswerableProperties.ts +2 -2
- package/src/screenplay/abilities/Ability.ts +2 -2
- package/src/screenplay/abilities/AbilityType.ts +1 -1
- package/src/screenplay/abilities/AnswerQuestions.ts +3 -3
- package/src/screenplay/abilities/CanHaveAbilities.ts +2 -2
- package/src/screenplay/abilities/PerformActivities.ts +9 -6
- package/src/screenplay/abilities/UsesAbilities.ts +2 -2
- package/src/screenplay/activities/PerformsActivities.ts +1 -1
- package/src/screenplay/artifacts/CollectsArtifacts.ts +1 -1
- package/src/screenplay/debugging/Debug.ts +6 -6
- package/src/screenplay/debugging/Log.ts +4 -4
- package/src/screenplay/notes/ChainableSetter.ts +2 -2
- package/src/screenplay/notes/NotepadAdapter.ts +7 -6
- package/src/screenplay/notes/notes.ts +1 -1
- package/src/screenplay/questions/AnswersQuestions.ts +1 -1
- package/src/screenplay/questions/Check.ts +5 -5
- package/src/screenplay/questions/Expectation.ts +4 -3
- package/src/screenplay/questions/List.ts +8 -7
- package/src/screenplay/questions/MetaQuestion.ts +2 -2
- package/src/screenplay/questions/Unanswered.ts +2 -1
- package/src/screenplay/questions/expectations/ExpectationDetails.ts +2 -1
- package/src/screenplay/questions/expectations/ExpectationOutcome.ts +1 -1
- package/src/screenplay/questions/q.ts +3 -2
- package/src/screenplay/time/TellsTime.ts +19 -0
- package/src/screenplay/time/abilities/ScheduleWork.ts +4 -2
- package/src/screenplay/time/activities/Wait.ts +4 -3
- package/src/screenplay/time/index.ts +1 -0
- package/src/screenplay/time/models/DelayedCallback.ts +1 -1
- package/src/screenplay/time/models/Duration.ts +2 -1
- package/src/screenplay/time/models/RepeatUntilLimits.ts +1 -1
- package/src/screenplay/time/models/Scheduler.ts +4 -4
- package/src/stage/Cast.ts +1 -1
- package/src/stage/Extras.ts +2 -2
- package/src/stage/ListensToDomainEvents.ts +1 -1
- package/src/stage/Stage.ts +12 -8
- package/src/stage/StageCrewMember.ts +2 -2
- package/src/stage/StageCrewMemberBuilder.ts +2 -2
- package/src/stage/StageCrewMemberBuilderDependencies.ts +2 -2
- package/src/stage/StageManager.ts +6 -5
- package/src/stage/crew/artifact-archiver/ArtifactArchiver.ts +8 -6
- package/src/stage/crew/stream-reporter/StreamReporter.ts +4 -4
- package/src/stage/queues/DomainEventQueue.ts +2 -2
- package/src/stage/queues/DomainEventQueues.ts +3 -2
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { JSONObject } from 'tiny-types';
|
|
2
|
+
import { ensure, isDefined } from 'tiny-types';
|
|
2
3
|
|
|
3
4
|
import { BusinessRule, CorrelationId, ScenarioDetails } from '../model';
|
|
4
5
|
import { Timestamp } from '../screenplay';
|
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import { ActivityDetails, CorrelationId } from '../model';
|
|
2
|
-
import {
|
|
3
|
-
import { DomainEvent } from './DomainEvent';
|
|
1
|
+
import type { ActivityDetails, CorrelationId } from '../model';
|
|
2
|
+
import type { TellsTime } from '../screenplay';
|
|
3
|
+
import type { DomainEvent } from './DomainEvent';
|
|
4
4
|
|
|
5
|
-
export interface EmitsDomainEvents {
|
|
5
|
+
export interface EmitsDomainEvents extends TellsTime {
|
|
6
6
|
currentSceneId(): CorrelationId;
|
|
7
7
|
assignNewActivityId(details: ActivityDetails): CorrelationId;
|
|
8
8
|
announce(event: DomainEvent): void;
|
|
9
|
-
currentTime(): Timestamp;
|
|
10
9
|
waitForNextCue(): Promise<void>,
|
|
11
10
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { JSONObject } from 'tiny-types';
|
|
1
|
+
import type { JSONObject } from 'tiny-types';
|
|
2
2
|
|
|
3
|
-
import {
|
|
3
|
+
import type { SerialisedOutcome } from '../model';
|
|
4
|
+
import { ActivityDetails, CorrelationId, Outcome } from '../model';
|
|
4
5
|
import { Timestamp } from '../screenplay';
|
|
5
6
|
import { ActivityFinished } from './ActivityFinished';
|
|
6
7
|
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { JSONObject } from 'tiny-types';
|
|
2
|
+
import { ensure, isDefined } from 'tiny-types';
|
|
2
3
|
|
|
3
4
|
import { CorrelationId, Description, Name } from '../model';
|
|
4
|
-
import { Timestamp } from '../screenplay';
|
|
5
|
+
import type { Timestamp } from '../screenplay';
|
|
5
6
|
import { DomainEvent } from './DomainEvent';
|
|
6
7
|
|
|
7
8
|
/**
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { JSONObject } from 'tiny-types';
|
|
2
|
+
import { ensure, isDefined } from 'tiny-types';
|
|
2
3
|
|
|
3
|
-
import {
|
|
4
|
+
import type { SerialisedOutcome } from '../model';
|
|
5
|
+
import { CorrelationId, Outcome, ScenarioDetails } from '../model';
|
|
4
6
|
import { Timestamp } from '../screenplay';
|
|
5
7
|
import { DomainEvent } from './DomainEvent';
|
|
6
8
|
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { JSONObject } from 'tiny-types';
|
|
2
|
+
import { ensure, isDefined } from 'tiny-types';
|
|
2
3
|
|
|
3
4
|
import { CorrelationId, ScenarioDetails, ScenarioParameters } from '../model';
|
|
4
5
|
import { Timestamp } from '../screenplay';
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { JSONObject } from 'tiny-types';
|
|
1
|
+
import type { JSONObject } from 'tiny-types';
|
|
2
2
|
|
|
3
|
-
import {
|
|
3
|
+
import type { SerialisedOutcome } from '../model';
|
|
4
|
+
import { ActivityDetails, CorrelationId, Outcome } from '../model';
|
|
4
5
|
import { Timestamp } from '../screenplay';
|
|
5
6
|
import { ActivityFinished } from './ActivityFinished';
|
|
6
7
|
|
package/src/events/TaskStarts.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { JSONObject } from 'tiny-types';
|
|
1
|
+
import type { JSONObject } from 'tiny-types';
|
|
2
2
|
|
|
3
|
-
import {
|
|
3
|
+
import type { SerialisedOutcome } from '../model';
|
|
4
|
+
import { Outcome } from '../model';
|
|
4
5
|
import { Timestamp } from '../screenplay';
|
|
5
6
|
import { DomainEvent } from './DomainEvent';
|
|
6
7
|
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { JSONObject } from 'tiny-types';
|
|
2
|
+
import { ensure, isDefined } from 'tiny-types';
|
|
2
3
|
|
|
3
|
-
import {
|
|
4
|
+
import type { SerialisedOutcome} from '../model';
|
|
5
|
+
import { Outcome, TestSuiteDetails } from '../model';
|
|
4
6
|
import { Timestamp } from '../screenplay';
|
|
5
7
|
import { DomainEvent } from './DomainEvent';
|
|
6
8
|
|
package/src/instance.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { SerenityConfig } from './config';
|
|
2
|
-
import { Actor
|
|
1
|
+
import type { SerenityConfig } from './config';
|
|
2
|
+
import type { Actor} from './screenplay';
|
|
3
|
+
import { Clock } from './screenplay';
|
|
3
4
|
import { Serenity } from './Serenity';
|
|
4
|
-
import { Cast } from './stage';
|
|
5
|
+
import type { Cast } from './stage';
|
|
5
6
|
|
|
6
7
|
const clock = new Clock();
|
|
7
8
|
|
package/src/io/FileSystem.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { createId } from '@paralleldrive/cuid2';
|
|
2
|
-
import * as nodeFS from 'fs';
|
|
3
|
-
import { WriteFileOptions } from 'fs';
|
|
2
|
+
import type * as nodeFS from 'fs';
|
|
3
|
+
import type { WriteFileOptions } from 'fs';
|
|
4
4
|
import * as gracefulFS from 'graceful-fs';
|
|
5
5
|
import * as nodeOS from 'os';
|
|
6
6
|
import { promisify } from 'util';
|
package/src/io/format.ts
CHANGED
package/src/io/inspected.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import validate from 'validate-npm-package-name';
|
|
2
2
|
|
|
3
|
-
import { ClassDescription } from '../../config';
|
|
3
|
+
import type { ClassDescription } from '../../config';
|
|
4
4
|
import { ConfigurationError } from '../../errors';
|
|
5
5
|
import { d } from '../format';
|
|
6
|
-
import { ClassDescriptor } from './ClassDescriptor';
|
|
6
|
+
import type { ClassDescriptor } from './ClassDescriptor';
|
|
7
7
|
|
|
8
8
|
export class ClassDescriptionParser {
|
|
9
9
|
private static validClassNamePattern = /^[A-Za-z]\w+$/;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { ClassDescription } from '../../config';
|
|
1
|
+
import type { ClassDescription } from '../../config';
|
|
2
2
|
import { ConfigurationError } from '../../errors';
|
|
3
3
|
import { d } from '../format';
|
|
4
|
-
import { ClassDescriptionParser } from './ClassDescriptionParser';
|
|
5
|
-
import { ModuleLoader } from './ModuleLoader';
|
|
4
|
+
import type { ClassDescriptionParser } from './ClassDescriptionParser';
|
|
5
|
+
import type { ModuleLoader } from './ModuleLoader';
|
|
6
6
|
|
|
7
7
|
export class ClassLoader {
|
|
8
8
|
constructor(
|
package/src/io/stringified.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { JSONObject} from 'tiny-types';
|
|
2
|
+
import { ensure, isDefined, TinyType } from 'tiny-types';
|
|
2
3
|
|
|
3
4
|
import { FileSystemLocation } from '../io/FileSystemLocation';
|
|
4
5
|
import { Name } from './Name';
|
package/src/model/Artifact.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { JSONObject} from 'tiny-types';
|
|
2
|
+
import { ensure, isDefined, isString, Predicate, TinyType } from 'tiny-types';
|
|
2
3
|
|
|
3
4
|
import { LogicError } from '../errors';
|
|
4
5
|
import * as artifacts from './artifacts';
|
package/src/model/outcomes.ts
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
/* eslint-disable @typescript-eslint/explicit-module-boundary-types,unicorn/prefer-math-trunc */
|
|
2
|
-
import { JSONObject
|
|
2
|
+
import type { JSONObject} from 'tiny-types';
|
|
3
|
+
import { match, TinyType } from 'tiny-types';
|
|
3
4
|
|
|
4
|
-
import { AssertionError
|
|
5
|
+
import type { AssertionError} from '../errors';
|
|
6
|
+
import { ErrorSerialiser } from '../errors';
|
|
5
7
|
|
|
6
8
|
export interface SerialisedOutcome extends JSONObject {
|
|
7
9
|
code: number;
|
package/src/model/tags/Tag.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { JSONObject} from 'tiny-types';
|
|
2
|
+
import { ensure, isDefined, isGreaterThan, isString, property, TinyType } from 'tiny-types';
|
|
2
3
|
|
|
3
4
|
import * as TagTypes from './index';
|
|
4
5
|
|
package/src/model/tags/Tags.ts
CHANGED
|
@@ -2,9 +2,9 @@ import path from 'path';
|
|
|
2
2
|
|
|
3
3
|
import { ErrorStackParser } from '../errors';
|
|
4
4
|
import { FileSystemLocation, Path } from '../io';
|
|
5
|
-
import { UsesAbilities } from './abilities';
|
|
6
|
-
import { PerformsActivities } from './activities';
|
|
7
|
-
import { AnswersQuestions } from './questions';
|
|
5
|
+
import type { UsesAbilities } from './abilities';
|
|
6
|
+
import type { PerformsActivities } from './activities';
|
|
7
|
+
import type { AnswersQuestions } from './questions';
|
|
8
8
|
|
|
9
9
|
/**
|
|
10
10
|
* **Activities** represents {@apilink Task|tasks} and {@apilink Interaction|interactions} to be performed by an {@apilink Actor|actor}.
|
package/src/screenplay/Actor.ts
CHANGED
|
@@ -1,23 +1,27 @@
|
|
|
1
1
|
import { ConfigurationError, TestCompromisedError } from '../errors';
|
|
2
2
|
import { ActivityRelatedArtifactGenerated } from '../events';
|
|
3
3
|
import { typeOf } from '../io';
|
|
4
|
-
import { Artifact
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
|
|
4
|
+
import type { Artifact} from '../model';
|
|
5
|
+
import { Name, } from '../model';
|
|
6
|
+
import type { Stage } from '../stage';
|
|
7
|
+
import type {
|
|
8
8
|
AbilityType,
|
|
9
|
-
AnswerQuestions,
|
|
10
9
|
CanHaveAbilities,
|
|
11
10
|
Discardable,
|
|
12
11
|
Initialisable,
|
|
13
|
-
PerformActivities,
|
|
14
12
|
UsesAbilities
|
|
15
13
|
} from './abilities';
|
|
16
|
-
import {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
14
|
+
import {
|
|
15
|
+
Ability,
|
|
16
|
+
AnswerQuestions,
|
|
17
|
+
PerformActivities
|
|
18
|
+
} from './abilities';
|
|
19
|
+
import type { PerformsActivities } from './activities';
|
|
20
|
+
import type { Activity } from './Activity';
|
|
21
|
+
import type { Answerable } from './Answerable';
|
|
22
|
+
import type { CollectsArtifacts } from './artifacts';
|
|
23
|
+
import type { AnswersQuestions } from './questions';
|
|
24
|
+
import type { TellsTime, Timestamp } from './time';
|
|
21
25
|
|
|
22
26
|
/**
|
|
23
27
|
* **Actors** represent **people** and **external systems** interacting with the system under test.
|
|
@@ -82,7 +86,9 @@ export class Actor implements PerformsActivities,
|
|
|
82
86
|
UsesAbilities,
|
|
83
87
|
CanHaveAbilities<Actor>,
|
|
84
88
|
AnswersQuestions,
|
|
85
|
-
CollectsArtifacts
|
|
89
|
+
CollectsArtifacts,
|
|
90
|
+
TellsTime
|
|
91
|
+
{
|
|
86
92
|
private readonly abilities: Map<AbilityType<Ability>, Ability> = new Map<AbilityType<Ability>, Ability>();
|
|
87
93
|
|
|
88
94
|
constructor(
|
|
@@ -183,6 +189,13 @@ export class Actor implements PerformsActivities,
|
|
|
183
189
|
));
|
|
184
190
|
}
|
|
185
191
|
|
|
192
|
+
/**
|
|
193
|
+
* Returns current time.
|
|
194
|
+
*/
|
|
195
|
+
currentTime(): Timestamp {
|
|
196
|
+
return this.stage.currentTime();
|
|
197
|
+
}
|
|
198
|
+
|
|
186
199
|
/**
|
|
187
200
|
* Instructs the actor to invoke {@apilink Discardable.discard} method on any
|
|
188
201
|
* {@apilink Discardable} {@apilink Ability} it's been configured with.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { UsesAbilities } from './abilities';
|
|
1
|
+
import type { UsesAbilities } from './abilities';
|
|
2
2
|
import { Activity } from './Activity';
|
|
3
|
-
import { CollectsArtifacts } from './artifacts';
|
|
4
|
-
import { AnswersQuestions } from './questions';
|
|
3
|
+
import type { CollectsArtifacts } from './artifacts';
|
|
4
|
+
import type { AnswersQuestions } from './questions';
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* **Interactions** are low-level {@apilink Activity|activities} that encapsulate
|
|
@@ -3,14 +3,14 @@ import * as util from 'util'; // eslint-disable-line unicorn/import-style
|
|
|
3
3
|
|
|
4
4
|
import { LogicError } from '../errors';
|
|
5
5
|
import { f, inspectedObject } from '../io';
|
|
6
|
-
import { UsesAbilities } from './abilities';
|
|
7
|
-
import { Answerable } from './Answerable';
|
|
6
|
+
import type { UsesAbilities } from './abilities';
|
|
7
|
+
import type { Answerable } from './Answerable';
|
|
8
8
|
import { Interaction } from './Interaction';
|
|
9
|
-
import { Optional } from './Optional';
|
|
10
|
-
import { AnswersQuestions } from './questions/AnswersQuestions';
|
|
9
|
+
import type { Optional } from './Optional';
|
|
10
|
+
import type { AnswersQuestions } from './questions/AnswersQuestions';
|
|
11
11
|
import { Unanswered } from './questions/Unanswered';
|
|
12
|
-
import { RecursivelyAnswered } from './RecursivelyAnswered';
|
|
13
|
-
import { WithAnswerableProperties } from './WithAnswerableProperties';
|
|
12
|
+
import type { RecursivelyAnswered } from './RecursivelyAnswered';
|
|
13
|
+
import type { WithAnswerableProperties } from './WithAnswerableProperties';
|
|
14
14
|
|
|
15
15
|
/**
|
|
16
16
|
* **Questions** describe how {@apilink Actor|actors} should query the system under test or the test environment to retrieve some information.
|
package/src/screenplay/Task.ts
CHANGED