UNPKG

e2ed

Version:

E2E testing framework over Playwright

17 lines (16 loc) 781 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.locator = exports.createLocatorOptions = void 0; const create_locator_1 = require("create-locator"); const internal_1 = require("../../../constants/internal"); const client_1 = require("../client"); const isProduction = internal_1.e2edEnvironment.E2ED_ORIGIN !== 'https://bing.com'; const createLocatorOptions = { attributesOptions: internal_1.attributesOptions, isProduction }; exports.createLocatorOptions = createLocatorOptions; const { locator: locatorAttributes } = (0, create_locator_1.createSimpleLocator)(createLocatorOptions); /** * `locator` function. * @internal */ const locator = (...args) => (0, client_1.renderAttributes)(locatorAttributes(...args)); exports.locator = locator;