Skip to content

Commit

Permalink
feat: use locators in the Puppeteer extensions
Browse files Browse the repository at this point in the history
  • Loading branch information
OrKoN committed Jun 29, 2023
1 parent c68f958 commit a4ad4a2
Show file tree
Hide file tree
Showing 6 changed files with 294 additions and 4,274 deletions.
53 changes: 53 additions & 0 deletions __snapshots__/SchemaUtils.test.ts.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
exports[
'SchemaUtils Selectors selectorToPElementSelector should convert .cls > div #id 1'
] = `
.cls > div #id
`;

exports[
'SchemaUtils Selectors selectorToPElementSelector should convert .cls > div #id,.cls > div #id 1'
] = `
.cls > div #id >>>> .cls > div #id
`;

exports[
'SchemaUtils Selectors selectorToPElementSelector should convert text/my text ("my text") 1'
] = `
::-p-text(my text ("my text"))
`;

exports[
'SchemaUtils Selectors selectorToPElementSelector should convert text/my text ("my text"),aria/Test my test[role="button"] 1'
] = `
::-p-text(my text ("my text")) >>>> ::-p-aria(Test my test[role="button"])
`;

exports[
'SchemaUtils Selectors selectorToPElementSelector should convert text/my) 1'
] = `
::-p-text(my))
`;

exports[
'SchemaUtils Selectors selectorToPElementSelector should convert text/my() 1'
] = `
::-p-text(my())
`;

exports[
'SchemaUtils Selectors selectorToPElementSelector should convert text/" 1'
] = `
::-p-text(")
`;

exports[
"SchemaUtils Selectors selectorToPElementSelector should convert text/' 1"
] = `
::-p-text(\\')
`;

exports[
'SchemaUtils Selectors selectorToPElementSelector should convert xpath///*[@id="id"] 1'
] = `
::-p-xpath(//*[@id="id"])
`;
Loading

0 comments on commit a4ad4a2

Please sign in to comment.