UNPKG

testcafe-cucumber-steps

Version:

Cucumber steps (step definitions) written with TestCafe for end-to-end (e2e) tests

31 lines (25 loc) 1.12 kB
'use strict'; // ############################################################################# let test1Page = { pageTest1: 'http://localhost:8001/test1.html', textErrorXPath: `//*[ancestor::*[@class="todo-container" and descendant::*[text()="New"]] and @type="checkbox"]`, linkTest2Page: '#link-test2-page', linkTest2PageXPath: '//*[@id="link-test2-page"]', titleTest1: 'h1', blockTextTest: '#text-test', txtTest1: 'Test 1 sample', txtTest2: 'Test2', linkInvisibleTest2Page: '#link-invisible-test2-page', linkInvisibleTest2PageXPath: '//*[@id="link-invisible-test2-page"]', pageLoader: 'http://localhost:8001/test-loader.html', blockTestContent: '#block-content', blockTestContentXPath: `//*[@id="block-content" and contains(text(), "This is a test content on a page with loader")]`, inputUploadFile: '[type="file"]', pathToImage1: 'media/test-image1.jpg', buttonMenuRightClick: '#button-menu-right-click', buttonMenuRightClickXPath: '//*[@id="button-menu-right-click"]', blockMenu: '#block-menu' }; module.exports = test1Page;