Has anyone managed to write a Playwright test to test a SelectItem?
I've just started using Playwright and have a few working tests but am struggling with getting Playwright to input via a SelectItem.
Playwright's get_by_label doesn't work, I think because the SelectItem label's html doesn't include the "for" tag to link it to the control it's labelling (and Isomorphic explain why it doesn't in https://forums.smartclient.com/forum...-screen-reader).
I tried using SelectItem's setID and my id does appear in the HTML but not as the id field, which is still autogenerated (e.g. id="isc_JS").
I also tried setting an attribute with key "data-testid", because that's what Playwright uses for get_by_test_id, but it doesn't appear in html.
To be clear, I'm not suggesting SmartGWT isn't working correctly, I'm just looking for help with using Playwright to test screens with SelectItems.
My SmartGWT version is SmartClient Version: v13.0p_2022-06-09/PowerEdition Deployment (built 2022-06-09)
I've just started using Playwright and have a few working tests but am struggling with getting Playwright to input via a SelectItem.
Playwright's get_by_label doesn't work, I think because the SelectItem label's html doesn't include the "for" tag to link it to the control it's labelling (and Isomorphic explain why it doesn't in https://forums.smartclient.com/forum...-screen-reader).
I tried using SelectItem's setID and my id does appear in the HTML but not as the id field, which is still autogenerated (e.g. id="isc_JS").
I also tried setting an attribute with key "data-testid", because that's what Playwright uses for get_by_test_id, but it doesn't appear in html.
To be clear, I'm not suggesting SmartGWT isn't working correctly, I'm just looking for help with using Playwright to test screens with SelectItems.
My SmartGWT version is SmartClient Version: v13.0p_2022-06-09/PowerEdition Deployment (built 2022-06-09)
Comment