Skip on wk and ff
This commit is contained in:
parent
47e20ae9a3
commit
708c4a4a79
|
|
@ -17,7 +17,8 @@
|
||||||
import { browserTest as it, expect } from '../config/browserTest';
|
import { browserTest as it, expect } from '../config/browserTest';
|
||||||
import fs from 'fs';
|
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 context = await contextFactory();
|
||||||
const page = await context.newPage();
|
const page = await context.newPage();
|
||||||
const outputFile = testInfo.outputPath('output.pdf');
|
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);
|
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({
|
const context = await contextFactory({
|
||||||
baseURL: server.PREFIX,
|
baseURL: server.PREFIX,
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue