cypress/support/helpers/shouldSmokeTest/index.js

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
import path from 'ramda/src/path';
import config from '../../config/services';

const DEFAULT_SMOKE_VALUE = true;

export default (pageType, service) =>
  Cypress.env('SMOKE')
    ? path([service, 'pageTypes', pageType, 'smoke'], config)
    : DEFAULT_SMOKE_VALUE;