You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Certain modals, e.g., the CreateModModal can cause multiple elements with the same id to be on the Page. That's because there are scenarios the form in the modal has fields with the same name as the being displayed in the main content
That results in technically invalid HTML, and breaks getByLabel and label-based logic in Playwright
Discussion
An option explored was to add a random UUID to control ids:
Context
CreateModModal
can cause multiple elements with the same id to be on the Page. That's because there are scenarios the form in the modal has fields with the same name as the being displayed in the main contentgetByLabel
and label-based logic in PlaywrightDiscussion
pixiebrix-extension/src/components/form/FieldTemplate.tsx
Line 211 in cc4caf3
Related Code
pixiebrix-extension/src/pageEditor/modListingPanel/modals/CreateModModal.tsx
Line 299 in cc4caf3
The text was updated successfully, but these errors were encountered: