Skip on wk and ff

This commit is contained in:
Yury Semikhatsky 2024-12-05 13:56:50 -08:00
parent 47e20ae9a3
commit 708c4a4a79

View file

@ -17,7 +17,8 @@
import { browserTest as it, expect } from '../config/browserTest';
import fs from 'fs';
it('should be able to save file', async ({ contextFactory, headless, browserName }, testInfo) => {
it('should be able to save file', async ({ contextFactory, browserName }, testInfo) => {
it.skip(browserName !== 'chromium', 'Printing to pdf is currently only supported in chromium.');
const context = await contextFactory();
const page = await context.newPage();
const outputFile = testInfo.outputPath('output.pdf');
@ -25,7 +26,8 @@ it('should be able to save file', async ({ contextFactory, headless, browserName
expect(fs.readFileSync(outputFile).byteLength).toBeGreaterThan(0);
});
it('should be able to generate outline', async ({ contextFactory, server, headless, browserName }, testInfo) => {
it('should be able to generate outline', async ({ contextFactory, server, browserName }, testInfo) => {
it.skip(browserName !== 'chromium', 'Printing to pdf is currently only supported in chromium.');
const context = await contextFactory({
baseURL: server.PREFIX,
});