fix windows pdf request smoke test flake (#5729)

This commit is contained in:
Filipe Freire 2023-01-27 09:28:00 +00:00 committed by GitHub
parent 25a283ade5
commit 34f22bb648
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -43,9 +43,9 @@ test('can send requests', async ({ app, page }) => {
await page.getByRole('button', { name: 'sends dummy.pdf request and shows rich response' }).click();
await page.click('text=http://127.0.0.1:4010/file/dummy.pdfSend >> button');
await expect(statusTag).toContainText('200 OK');
await page.getByRole('button', { name: 'Preview' }).click();
await page.getByRole('menuitem', { name: 'Raw Data' }).click();
await expect(responseBody).toContainText('PDF-1.4');
// TODO(filipe): re-add a check for the preview that is less flaky
await page.getByRole('tab', { name: 'Timeline' }).click();
await page.locator('pre').filter({ hasText: '< Content-Type: application/pdf' }).click();
await page.getByRole('button', { name: 'sends request with basic authentication' }).click();
await page.click('text=http://127.0.0.1:4010/auth/basicSend >> button');