Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion tests/e2e/spec-coverage/catalog-ratings.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,13 @@ async function submitReview(
.getByRole('textbox', { name: /^Title/ })
.first()
.fill(reviewTitle)
const rater = dialog.locator('.vs__search').first()
// `.vs__search` no longer identifies the input on its own: the component
// library now also puts that class on a wrapper, so `.first()` resolved to
// <div class="input-field input-field--label-outside vs__search">
// and `fill()` refused it with "Element is not an <input>, <textarea>,
// <select> or [contenteditable]". Demand an actual input, whether the class
// sits on it or on an ancestor, so this survives the markup moving again.
const rater = dialog.locator('input.vs__search, .vs__search input').first()
await rater.click()
await page
.locator('.vs__dropdown-option', { hasText: new RegExp(`^${rating}$`) })
Expand Down
Loading