TradeMe/tractor

View on GitHub
plugins/visual-regression/src/tractor/server/visual-regression/visual-regression.js

Summary

Maintainability
A
1 hr
Test Coverage

Function takeScreenshot has 31 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    async takeScreenshot (name, description) {
        const pixelRatio = await this.browser.executeScript(GET_PIXEL_RATIO);
        const capabilities = await this.browser.getCapabilities();
        const platform = capabilities.get('platform');
        const browser = capabilities.get('browserName');

    There are no issues that match your filters.

    Category
    Status