Skip to content

Commit

Permalink
FI-1237 feat: run tests via Playwright
Browse files Browse the repository at this point in the history
  • Loading branch information
uid11 committed Jul 1, 2024
1 parent 63199a9 commit 02dbfdb
Show file tree
Hide file tree
Showing 82 changed files with 1,172 additions and 6,029 deletions.
4 changes: 4 additions & 0 deletions .eslintrc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ ignorePatterns: [bin/forks/*/package, build, local]
rules:
class-methods-use-this: off
complexity: [error, {max: 10}]
consistent-return: off
curly: [error, all]
default-param-last: off
dot-notation: off
Expand All @@ -45,6 +46,7 @@ rules:
import/no-nodejs-modules:
- error
- allow:
- node:async_hooks
- node:child_process
- node:crypto
- node:fs
Expand Down Expand Up @@ -85,6 +87,7 @@ rules:
- src/*/index.ts
- src/*/internal.ts
- src/bin/*.ts
- src/config.ts
- src/createLocator.ts
- src/esm/*.ts
- src/getModulesGraph.ts
Expand Down Expand Up @@ -163,6 +166,7 @@ rules:
'@typescript-eslint/class-literal-property-style': error
'@typescript-eslint/consistent-generic-constructors': error
'@typescript-eslint/consistent-indexed-object-style': error
'@typescript-eslint/consistent-return': error
'@typescript-eslint/consistent-type-assertions':
[error, {assertionStyle: as, objectLiteralTypeAssertions: never}]
'@typescript-eslint/consistent-type-definitions': [error, type]
Expand Down
2 changes: 1 addition & 1 deletion autotests/packs/allTests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ export const pack: Pack = {
skipTests,
takeFullPageScreenshotOnError: false,
takeViewportScreenshotOnError: true,
testFileGlobs: ['./autotests/tests/**/*.ts', '!**/*.skip.ts'],
testFileGlobs: ['**/selectorCustomMethods.ts', '!**/*.skip.ts'],
testIdleTimeout: 20_000,
testTimeout: 60_000,
viewportHeight: 1080,
Expand Down
20 changes: 0 additions & 20 deletions autotests/tests/internalTypeTests/selectors.skip.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,31 +38,11 @@ locatorIdSelector(3); // eslint-disable-line @typescript-eslint/no-magic-numbers

// ok
htmlElementSelector.filterByLocatorId('id') satisfies Selector;
// ok
htmlElementSelector.parentByLocatorId('id') satisfies Selector;
// ok
htmlElementSelector.childByLocatorId('id') satisfies Selector;
// ok
htmlElementSelector.siblingByLocatorId('id') satisfies Selector;
// ok
htmlElementSelector.nextSiblingByLocatorId('id') satisfies Selector;
// ok
htmlElementSelector.prevSiblingByLocatorId('id') satisfies Selector;

// ok
htmlElementSelector.filterByLocatorParameter('prop', 'value') satisfies Selector;
// ok
htmlElementSelector.findByLocatorParameter('prop', 'value') satisfies Selector;
// ok
htmlElementSelector.parentByLocatorParameter('prop', 'value') satisfies Selector;
// ok
htmlElementSelector.childByLocatorParameter('prop', 'value') satisfies Selector;
// ok
htmlElementSelector.siblingByLocatorParameter('prop', 'value') satisfies Selector;
// ok
htmlElementSelector.nextSiblingByLocatorParameter('prop', 'value') satisfies Selector;
// ok
htmlElementSelector.prevSiblingByLocatorParameter('prop', 'value') satisfies Selector;

// ok
void htmlElementSelector.getLocatorId();
Expand Down
Loading

0 comments on commit 02dbfdb

Please sign in to comment.