How to use the @serenity-js/assertions.endsWith function in @serenity-js/assertions

To help you get started, we’ve selected a few @serenity-js/assertions 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 / packages / protractor / spec / screenplay / interactions / Navigate.spec.ts View on Github external
it('allows the actor to navigate forward in the browser history', () => Bernie.attemptsTo(
            Navigate.to(`chrome://version/`),
            Navigate.to(`chrome://accessibility/`),

            Navigate.back(),
            Navigate.forward(),

            Ensure.that(Website.url(), endsWith('accessibility/')),
        ));
github jan-molak / serenity-js / packages / protractor / spec / screenplay / interactions / Navigate.spec.ts View on Github external
it('allows the actor to navigate back in the browser history', () => Bernie.attemptsTo(
            Navigate.to(`chrome://version/`),
            Navigate.to(`chrome://accessibility/`),

            Navigate.back(),

            Ensure.that(Website.url(), endsWith('version/')),
        ));