How to use the @serenity-js/protractor.Website.title function in @serenity-js/protractor

To help you get started, we’ve selected a few @serenity-js/protractor examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github jan-molak / serenity-js / examples / protractor-cucumber / features / step_definitions / ui.steps.ts View on Github external
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)),
    );
});

@serenity-js/protractor

Test your web apps with Serenity/JS

Apache-2.0
Latest version published 2 days ago

Package Health Score

81 / 100
Full package analysis