How to use the protractor-retry.retry.onPrepare function in protractor-retry

To help you get started, we’ve selected a few protractor-retry 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 Alfresco / alfresco-ng2-components / protractor.conf.ts View on Github external
onPrepare() {
        afterEachAllRewrite();
        beforeEachAllRewrite();
        afterAllRewrite();
        beforeAllRewrite();

        retry.onPrepare();

        jasmine.DEFAULT_TIMEOUT_INTERVAL = TIMEOUT;

        require('ts-node').register({
            project: 'e2e/tsconfig.e2e.json'
        });

        require("tsconfig-paths").register({
            project: 'e2e/tsconfig.e2e.json',
            baseUrl: 'e2e/',
            paths: tsConfig.compilerOptions.paths
        });

        browser.manage().window().setSize(width, height);

        jasmine.getEnv().addReporter(
github Activiti / activiti-modeling-app / e2e / config / hooks / on-prepare.js View on Github external
function onPrepare() {

    if (process.env.CI) {
        retry.onPrepare();
        SmartRunner.apply({
            outputDirectory: process.env.COMMUNITY_SMARTRUNNER_DIR || './.protractor-smartrunner',
            repoHash: process.env.GIT_HASH
        });
    }

    require('ts-node').register({ project: './e2e/tsconfig.e2e.json' });
    require('tsconfig-paths').register({baseUrl: './e2e', paths: configTs.compilerOptions.paths});

    fs.ensureDirSync(config.paths.tmp);

    browser.manage().window().setSize(config.browserWidth, config.browserHeight);

    browser.waitForAngularEnabled(false);

    var generatedSuiteName = Math.random().toString(36).substr(2, 5);

protractor-retry

module for protractor to automatically re-run failed tests with specific number of attempts

MIT
Latest version published 4 years ago

Package Health Score

45 / 100
Full package analysis