Commit e7da4bf
fix: resolve Playwright strict mode violations in Jellyfin invite tests
Fixed two E2E test failures caused by Playwright strict mode violations:
1. 'admin can access invites page': Added `exact: true` to heading selector
to match only "Invites" heading, not "No invites yet"
2. 'admin can open create invite modal': Changed from `getByText()` to
`getByRole('heading')` to specifically target the modal heading instead
of matching both the heading and submit button
Both tests were timing out due to locators resolving to multiple elements.
The fixes ensure selectors uniquely identify single elements following
Playwright best practices.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Sonnet 4.5 <[email protected]>1 parent c26baac commit e7da4bf
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
127 | 127 | | |
128 | 128 | | |
129 | 129 | | |
130 | | - | |
| 130 | + | |
131 | 131 | | |
132 | 132 | | |
133 | 133 | | |
| |||
139 | 139 | | |
140 | 140 | | |
141 | 141 | | |
142 | | - | |
| 142 | + | |
143 | 143 | | |
144 | 144 | | |
145 | 145 | | |
| |||
0 commit comments