You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by "sadpandajoe (via GitHub)" <gi...@apache.org> on 2025/11/10 17:23:20 UTC
Re: [PR] fix(tests): fix flakey tests with PropertiesModal.test.tsx, FiltersConfigModal.test.tsx and ChartList.listview.test.tsx [superset]
sadpandajoe commented on code in PR #36037:
URL: https://github.com/apache/superset/pull/36037#discussion_r2511376238
##########
superset-frontend/src/explore/components/PropertiesModal/PropertiesModal.test.tsx:
##########
@@ -437,21 +427,17 @@ test('"Certification details" should not be empty when saved', async () => {
// Expand the Advanced section first to access certification details
const advancedPanel = screen.getByText('Advanced').closest('[role="tab"]');
if (advancedPanel) {
- userEvent.click(advancedPanel);
+ await userEvent.click(advancedPanel);
}
- await waitFor(() => {
- const certificationDetails = screen.getByRole('textbox', {
- name: 'Certification details',
- });
-
- userEvent.clear(certificationDetails);
- userEvent.type(certificationDetails, 'Test certification details');
-
- expect(certificationDetails).toHaveValue('Test certification details');
+ const certificationDetails = await screen.findByRole('textbox', {
+ name: 'Certification details',
});
+ await userEvent.clear(certificationDetails);
+ await userEvent.type(certificationDetails, 'Test certification details');
+ expect(certificationDetails).toHaveValue('Test certification details');
Review Comment:
this should be fine as we have await for the two steps above this.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org