mirror of
https://github.com/Kong/insomnia
synced 2024-11-08 06:39:48 +00:00
fix windows pdf request smoke test flake (#5729)
This commit is contained in:
parent
25a283ade5
commit
34f22bb648
@ -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');
|
||||
|
Loading…
Reference in New Issue
Block a user