Skip to content

Commit f10ab18

Browse files
committed
feat: add support of @testing-library/dom queries
1 parent 3981b08 commit f10ab18

File tree

9 files changed

+567
-6
lines changed

9 files changed

+567
-6
lines changed

package-lock.json

Lines changed: 184 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@
6969
"@jspm/core": "2.0.1",
7070
"@puppeteer/browsers": "2.7.1",
7171
"@rrweb/record": "2.0.0-alpha.18",
72+
"@testing-library/dom": "10.4.0",
7273
"@testplane/devtools": "8.32.3",
7374
"@testplane/wdio-protocols": "9.4.6",
7475
"@testplane/wdio-utils": "9.5.3",
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
import { Browser } from "../browser";
2+
import { setupBrowser } from "../queries";
3+
4+
const _addDTLCommands = (browser: Browser): void => {
5+
const { publicAPI: session } = browser;
6+
7+
setupBrowser(session);
8+
};
9+
10+
export default _addDTLCommands;

src/browser/commands/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,5 @@ export const customCommandFileNames = [
88
"openAndWait",
99
"switchToRepl",
1010
"moveCursorTo",
11+
"_addDTLCommands",
1112
];

0 commit comments

Comments
 (0)