CI: flaky test monitor (#7007)

This commit is contained in:
Sid
2026-02-02 17:16:27 +05:30
committed by GitHub
parent 0f0c2b5912
commit 06dd5c14d5
7 changed files with 343 additions and 36 deletions

View File

@@ -702,7 +702,10 @@ const switchResponseFormat = async (page: Page, format: string) => {
await test.step(`Switch response format to ${format}`, async () => {
const responseFormatTab = page.getByTestId('format-response-tab');
await responseFormatTab.click();
await page.getByTestId('format-response-tab-dropdown').getByText(format).click();
// Wait for dropdown to be visible before clicking the format option
const dropdown = page.getByTestId('format-response-tab-dropdown');
await dropdown.waitFor({ state: 'visible' });
await dropdown.getByText(format).click();
});
};