Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
directConnect: true,
// seleniumAddress: 'http://localhost:9515',
allScriptsTimeout: 11000,
specs: [ 'spec/**/*.spec.ts', ],
framework: 'custom',
frameworkPath: require.resolve('@serenity-js/protractor/adapter'),
serenity: {
runner: 'jasmine',
crew: [
ArtifactArchiver.storingArtifactsAt('./target/site/serenity'),
Photographer.whoWill(TakePhotosOfInteractions),
new SerenityBDDReporter(),
ConsoleReporter.forDarkTerminals(),
]
},
jasmineNodeOpts: {
requires: [
'ts-node/register',
path.resolve(__dirname, 'node_modules/@serenity-js/jasmine'),
],
helpers: [
'spec/config/*.ts'
]
},
capabilities: {
When(/^(.*) navigates to the test website$/, function(this: WithStage, actorName: string) {
return this.stage.actor(actorName).attemptsTo(
StartLocalServer.onRandomPort(),
UseAngular.disableSynchronisation(),
Navigate.to(LocalServer.url()),
);
});
When(/^(.*) navigates to the test website$/, function(this: WithStage, actorName: string) {
return this.stage.actor(actorName).attemptsTo(
StartLocalServer.onRandomPort(),
UseAngular.disableSynchronisation(),
Navigate.to(LocalServer.url()),
);
});
Then(/(?:he|she|they) should see the title of "(.*)"/, function(this: WithStage, expectedTitle: string) {
return this.stage.theActorInTheSpotlight().attemptsTo(
Ensure.that(Website.title(), equals(expectedTitle)),
);
});