UNPKG

cucumber-protractor

Version:

POM CukeTractor - Bootstrap your cucumber tests with cucumber, protractor and a structured way of creating page objects and component objects

13 lines (9 loc) 354 B
const createPage = require('../../uiTestHelpers/createPage'); const fileName = createPage.getFileName(__filename); module.exports = (world) => { const pagePath = '/other-page'; const locators = { 'Go to home page by react router link': by.css('[data-test="go-to-home-link"]'), }; return createPage(fileName, world, pagePath, locators); };