How to use the @serenity-js/protractor.Photographer.whoWill 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-jasmine-todomvc / protractor.conf.js View on Github external
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: {

@serenity-js/protractor

Adapter that integrates @serenity-js/web with Protractor, enabling Serenity/JS reporting and using the Screenplay Pattern to write end-to-end test scenarios

Apache-2.0
Latest version published 1 day ago

Package Health Score

81 / 100
Full package analysis