test(page): add on-first-failure as valid option
This commit is contained in:
parent
d69736767d
commit
ae5585fbca
|
|
@ -14,8 +14,8 @@
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import type { Page, ViewportSize } from 'playwright-core';
|
|
||||||
import type { PageScreenshotOptions, ScreenshotMode, VideoMode } from '@playwright/test';
|
import type { PageScreenshotOptions, ScreenshotMode, VideoMode } from '@playwright/test';
|
||||||
|
import type { Page, ViewportSize } from 'playwright-core';
|
||||||
export { expect } from '@playwright/test';
|
export { expect } from '@playwright/test';
|
||||||
|
|
||||||
// Page test does not guarantee an isolated context, just a new page (because Android).
|
// Page test does not guarantee an isolated context, just a new page (because Android).
|
||||||
|
|
@ -27,7 +27,7 @@ export type PageWorkerFixtures = {
|
||||||
headless: boolean;
|
headless: boolean;
|
||||||
channel: string;
|
channel: string;
|
||||||
screenshot: ScreenshotMode | { mode: ScreenshotMode } & Pick<PageScreenshotOptions, 'fullPage' | 'omitBackground'>;
|
screenshot: ScreenshotMode | { mode: ScreenshotMode } & Pick<PageScreenshotOptions, 'fullPage' | 'omitBackground'>;
|
||||||
trace: 'off' | 'on' | 'retain-on-failure' | 'on-first-retry' | 'on-all-retries' | /** deprecated */ 'retry-with-trace';
|
trace: 'off' | 'on' | 'retain-on-failure' | 'on-first-retry' | 'on-first-failure' | 'on-all-retries' | /** deprecated */ 'retry-with-trace';
|
||||||
video: VideoMode | { mode: VideoMode, size: ViewportSize };
|
video: VideoMode | { mode: VideoMode, size: ViewportSize };
|
||||||
browserName: 'chromium' | 'firefox' | 'webkit';
|
browserName: 'chromium' | 'firefox' | 'webkit';
|
||||||
browserVersion: string;
|
browserVersion: string;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue