@uxf/e2e 11.48.3 → 11.49.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +2 -1
- package/tests/modal.e2e.js +2 -2
- package/ui/modal.js +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uxf/e2e",
|
|
3
|
-
"version": "11.
|
|
3
|
+
"version": "11.49.0",
|
|
4
4
|
"description": "UXF TestCafe helpers",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
"e2e": "../../node_modules/.bin/testcafe chrome ./tests",
|
|
12
12
|
"e2e:dev": "../../node_modules/.bin/testcafe chrome ./tests --live",
|
|
13
13
|
"e2e:ci": "../../node_modules/.bin/testcafe chrome:headless ./tests",
|
|
14
|
+
"e2e:local": "export BASE_URL=localhost:3000 && ../../node_modules/.bin/testcafe chrome:headless ./tests",
|
|
14
15
|
"typecheck": "../../node_modules/.bin/tsc --noEmit --skipLibCheck"
|
|
15
16
|
},
|
|
16
17
|
"author": "UX Fans s.r.o",
|
package/tests/modal.e2e.js
CHANGED
|
@@ -4,8 +4,8 @@ const testcafe_1 = require("testcafe");
|
|
|
4
4
|
const components_1 = require("../components");
|
|
5
5
|
const config_1 = require("../config");
|
|
6
6
|
const wait_for_react_1 = require("../utils/wait-for-react");
|
|
7
|
-
(0, testcafe_1.fixture)("
|
|
8
|
-
.page(config_1.BASE_URL + "/examples/ui/modal/
|
|
7
|
+
(0, testcafe_1.fixture)("ModalProvider")
|
|
8
|
+
.page(config_1.BASE_URL + "/examples/ui/modal/ModalProvider")
|
|
9
9
|
.httpAuth({ username: "uxf", password: "uxf" })
|
|
10
10
|
.beforeEach(async (t) => {
|
|
11
11
|
await (0, wait_for_react_1.waitForReact)(10000, t);
|
package/ui/modal.js
CHANGED
|
@@ -4,7 +4,7 @@ exports.modal = modal;
|
|
|
4
4
|
const testcafe_1 = require("testcafe");
|
|
5
5
|
const create_selector_1 = require("../utils/create-selector");
|
|
6
6
|
function modal(finder) {
|
|
7
|
-
const modalSelector = (0, create_selector_1.createSelector)(finder).find(".uxf-
|
|
7
|
+
const modalSelector = (0, create_selector_1.createSelector)(finder).find(".uxf-dialog__body");
|
|
8
8
|
return {
|
|
9
9
|
shouldExist() {
|
|
10
10
|
return testcafe_1.t.expect(modalSelector.exists).ok();
|