This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Throw Error: Path is not available when connecting remotely. Use saveAs() to save a local copy. | |
import { test, expect } from '@playwright/test'; | |
import fs from 'fs'; | |
test('download result', async ({ page }) => { | |
await page.goto('https://demo.playwright.dev/svgomg'); | |
await page.locator('.menu-item >> text=Demo').click(); | |
const downloadButton = page.locator('a[title=Download]'); | |
await expect(downloadButton).toHaveAttribute('href', /blob/); | |
const [download] = await Promise.all([ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import type { PlaywrightTestConfig } from '@playwright/test'; | |
import { devices } from '@playwright/test'; | |
import { AzureReporterOptions } from '@alex_neo/playwright-azure-reporter/dist/playwright-azure-reporter'; | |
/** | |
* See https://playwright.dev/docs/test-configuration. | |
*/ | |
const config: PlaywrightTestConfig = { | |
testDir: './tests', | |
/* Maximum time one test can run for. */ |
OlderNewer