Skip to content

Commit 9a77c61

Browse files
Merge pull request #6 from qavajs/export-locator
added export of page object `locator` function
2 parents d7b1899 + 9dd03c9 commit 9a77c61

File tree

4 files changed

+6
-2
lines changed

4 files changed

+6
-2
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ Check [Keep a Changelog](http://keepachangelog.com/) for recommendations on how
1010
:pencil: - chore
1111
:microscope: - experimental
1212

13+
## [2.0.2]
14+
- :beetle: added export of page object `locator` function
15+
1316
## [2.0.1]
1417
- :beetle: fixed issue with getting child element
1518

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "@qavajs/cypress",
33
"version": "2.0.1",
44
"description": "qavajs for cypress runner",
5-
"main": "",
5+
"main": "index.js",
66
"scripts": {
77
"debug": "cypress open --config-file test-e2e/cypress.config.js",
88
"test": "cypress run --config-file test-e2e/cypress.config.js"

po.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export { locator } from './lib/pageObjects';

test-e2e/page_object/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { locator } from '../../lib/pageObjects';
1+
import { locator } from '../../po.js';
22

33
export default class App {
44
SimpleTextElement = locator('#textValue');

0 commit comments

Comments
 (0)