test: disable certain screencast tests on Firefox. (#6396)

These were regressed by 934bc672f7

Tests link: https://devops.aslushnikov.com/flakiness2.html#commits=20&timestamp=1620085865166
This commit is contained in:
Andrey Lushnikov 2021-05-04 00:45:36 -07:00 committed by GitHub
parent 4e0e13cf05
commit ce7a72b217
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -157,7 +157,8 @@ it.describe('screencast', () => {
expect(error.message).toContain('"videoSize" option requires "videosPath" to be specified');
});
it('should work with old options', async ({browser}, testInfo) => {
it('should work with old options', async ({browser, isFirefox, isWindows}, testInfo) => {
it.fail(isFirefox && isWindows);
const videosPath = testInfo.outputPath('');
const size = { width: 450, height: 240 };
const context = await browser.newContext({
@ -180,7 +181,8 @@ it.describe('screencast', () => {
expect(error.message).toContain('recordVideo.dir: expected string, got undefined');
});
it('should capture static page', async ({browser}, testInfo) => {
it('should capture static page', async ({browser, isFirefox, isWindows}, testInfo) => {
it.fail(isFirefox && isWindows);
const size = { width: 450, height: 240 };
const context = await browser.newContext({
recordVideo: {