Commit 3612097
🐛 fix: consolidate Settings title testid to fix Playwright strict mode violations (#19229)
* 🐛 fix: consolidate Settings title testid to fix Playwright strict mode violations
Both desktop and mobile Settings page titles now use the same data-testid
to prevent strict mode violations when tests use CSS selectors that match
multiple elements. Visibility is still managed via CSS classes (hidden lg:block
for desktop sidebar, lg:hidden for mobile section).
Fixes #19208 - Playwright Cross-Browser (Nightly) test failures in Firefox,
WebKit, and Mobile browsers due to h1:has-text('Settings') selector matching
multiple elements.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>"
* 🐛 fix: remove settings-title-mobile testid reference from test
Now that both desktop and mobile Settings titles share the same testid,
update the test to use .filter({visible: true}) to select the appropriate
element based on viewport.
Fixes #19208
* 🐛 fix: consolidate Settings title testid to fix Playwright strict mode violations
Both desktop and mobile Settings page titles now use the same data-testid
('settings-title') to prevent strict mode violations when tests use CSS
selectors that match multiple elements. Visibility is still properly
managed via CSS classes (hidden lg:block for desktop sidebar, lg:hidden
for mobile section).
Fixes #19208 - Playwright Cross-Browser (Nightly) test failures in Firefox,
WebKit, and Mobile browsers.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* 🐛 fix: revert Settings prop changes, keep testid consolidation
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Signed-off-by: GitHub Copilot <copilot@kubestellar.io>
---------
Signed-off-by: GitHub Copilot <copilot@kubestellar.io>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: GitHub Copilot <copilot@kubestellar.io>1 parent 46f4396 commit 3612097
3 files changed
Lines changed: 9 additions & 10 deletions
File tree
- web
- e2e
- user-flows
- src/components/settings
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
64 | | - | |
| 64 | + | |
65 | 65 | | |
66 | | - | |
67 | 66 | | |
68 | 67 | | |
69 | 68 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
117 | 117 | | |
118 | 118 | | |
119 | 119 | | |
120 | | - | |
121 | | - | |
122 | | - | |
| 120 | + | |
| 121 | + | |
123 | 122 | | |
124 | | - | |
125 | 123 | | |
126 | 124 | | |
127 | 125 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
437 | 437 | | |
438 | 438 | | |
439 | 439 | | |
| 440 | + | |
440 | 441 | | |
441 | 442 | | |
442 | 443 | | |
| |||
505 | 506 | | |
506 | 507 | | |
507 | 508 | | |
508 | | - | |
| 509 | + | |
509 | 510 | | |
| 511 | + | |
510 | 512 | | |
511 | 513 | | |
512 | 514 | | |
| |||
578 | 580 | | |
579 | 581 | | |
580 | 582 | | |
581 | | - | |
582 | | - | |
583 | | - | |
| 583 | + | |
| 584 | + | |
| 585 | + | |
584 | 586 | | |
585 | 587 | | |
586 | 588 | | |
| |||
0 commit comments