test: skip codegen tracing tests in PWTEST_TRACE mode

This commit is contained in:
Max Schmitt 2024-09-24 12:09:30 +02:00
parent 76c3077a69
commit 2e603ddf77
3 changed files with 3 additions and 0 deletions

View file

@ -19,6 +19,7 @@ import type { ConsoleMessage } from 'playwright';
test.describe('cli codegen', () => {
test.skip(({ mode }) => mode !== 'default');
test.skip(({ trace }) => trace === 'on' && test.info().project.name.endsWith('-codegen-mode-trace'));
test('should click', async ({ openRecorder }) => {
const { page, recorder } = await openRecorder();

View file

@ -20,6 +20,7 @@ import fs from 'fs';
test.describe('cli codegen', () => {
test.skip(({ mode }) => mode !== 'default');
test.skip(({ trace }) => trace === 'on' && test.info().project.name.endsWith('-codegen-mode-trace'));
test('should contain open page', async ({ openRecorder }) => {
const { recorder } = await openRecorder();

View file

@ -18,6 +18,7 @@ import { test, expect } from './inspectorTest';
test.describe('cli codegen', () => {
test.skip(({ mode }) => mode !== 'default');
test.skip(({ trace }) => trace === 'on' && test.info().project.name.endsWith('-codegen-mode-trace'));
test('should click locator.first', async ({ openRecorder }) => {
const { page, recorder } = await openRecorder();