-
Notifications
You must be signed in to change notification settings - Fork 33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
test(quantic): Playwright migration for facet manager E2E tests #4943
base: master
Are you sure you want to change the base?
Conversation
Pull Request ReportPR Title❌ Title should follow the conventional commit spec: Example: Live demo linksBundle Size
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The E2E tests do not test the Quantic Facet Manager component,
on a separate note, the title of the PR should be test(quantic):....
packages/quantic/force-app/main/default/lwc/quanticFacetManager/e2e/quanticFacetManager.e2e.ts
Show resolved
Hide resolved
19daaa3
to
3ae3f46
Compare
packages/quantic/force-app/main/default/lwc/quanticFacetManager/e2e/pageObject.ts
Outdated
Show resolved
Hide resolved
packages/quantic/force-app/main/default/lwc/quanticFacetManager/e2e/pageObject.ts
Outdated
Show resolved
Hide resolved
packages/quantic/force-app/main/default/lwc/quanticFacetManager/e2e/quanticFacetManager.e2e.ts
Outdated
Show resolved
Hide resolved
packages/quantic/force-app/main/default/lwc/quanticFacetManager/e2e/quanticFacetManager.e2e.ts
Outdated
Show resolved
Hide resolved
...quantic/force-app/main/default/lwc/quanticFacetManager/__tests__/quanticFacetManager.test.js
Outdated
Show resolved
Hide resolved
f23f9f1
to
3f5e0e0
Compare
packages/quantic/force-app/main/default/lwc/quanticFacetManager/e2e/pageObject.ts
Outdated
Show resolved
Hide resolved
packages/quantic/force-app/main/default/lwc/quanticFacetManager/e2e/quanticFacetManager.e2e.ts
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think there's an issue with your test with the mock returned facet values.
|
||
facetIds.forEach((facetId, idx) => { | ||
// eslint-disable-next-line @typescript-eslint/no-explicit-any | ||
const facet = facets.find((f: any) => f.facetId === facetId); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You probably don't need to explicitely set any
and you can probably remove the eslint disable here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if I do it "works" but I still have the Parameter 'f' implicitly has an 'any' type
error
packages/quantic/force-app/main/default/lwc/quanticFacetManager/e2e/pageObject.ts
Outdated
Show resolved
Hide resolved
packages/quantic/force-app/main/default/lwc/quanticFacetManager/e2e/pageObject.ts
Outdated
Show resolved
Hide resolved
const exampleFacetsOrder = ['objecttype', 'date', 'language']; | ||
|
||
/** | ||
* Filters out any facetId which contains a filter input "_input" because they are not displayed in the facet manager. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is that exactly? What are facets with _input?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
some facets are returned with a _input
filter for example, date has date
and date_input
which takes values like ascending/descending. So its not a facet in itself but serves as a filter.
packages/quantic/force-app/main/default/lwc/quanticFacetManager/e2e/quanticFacetManager.e2e.ts
Outdated
Show resolved
Hide resolved
packages/quantic/force-app/main/default/lwc/quanticFacetManager/e2e/quanticFacetManager.e2e.ts
Outdated
Show resolved
Hide resolved
fbb3c52
to
ee0eea3
Compare
packages/quantic/force-app/main/default/lwc/quanticFacetManager/e2e/quanticFacetManager.e2e.ts
Outdated
Show resolved
Hide resolved
packages/quantic/force-app/main/default/lwc/quanticFacetManager/e2e/quanticFacetManager.e2e.ts
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Couple final adjustments to address, but looks good to me!
9f85e0d
to
d090583
Compare
SFINT-5795
IN THIS PR:
quanticFacetManager
componentquanticFacetManager
componentUNIT TESTS:
E2E TESTS: