test(link): refine testing suite#7856
Conversation
7e306dd to
f8545f2
Compare
nuria1110
left a comment
There was a problem hiding this comment.
Nice work simplifying our snapshots!
| component: Link, | ||
| parameters: { | ||
| themeProvider: { chromatic: { theme: "sage" } }, | ||
| themeProvider: { chromatic: { disableSnapshot: true }, theme: "sage" }, |
There was a problem hiding this comment.
I'm not sure the structure is correct here, I believe the chromatic config to disable the snapshot has to be done separately and not within the themeProvider:
| themeProvider: { chromatic: { disableSnapshot: true }, theme: "sage" }, | |
| themeProvider: { chromatic: { theme: "sage" } }, | |
| chromatic: { disableSnapshot: false }, |
4e52c43 to
7662ade
Compare
| await expect(linkElement).toHaveAttribute("href", testPlaywright); | ||
| }); | ||
|
|
||
| test("should render with tooltipMessage prop", async ({ mount, page }) => { |
There was a problem hiding this comment.
non-blocking: considering this is the only pw test remaining other than accessibility, do you think you can also add this to the all types story that was expanded? and use a target to hover?
There was a problem hiding this comment.
good point, couldn't get the tooltip to show using pseudo within the test stories so had to add as an interaction story to one of the ones already snapshotted but unable to consolidate them further.
7662ade to
213ec05
Compare
213ec05 to
36dd1fa
Compare
|
🎉 This PR is included in version 158.41.1 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Proposed behaviour
Current behaviour
Checklist
d.tsfile added or updated if requiredQA
Additional context
Testing instructions
Ensure Playwright tests pass