strapi/e2e/utils/shared.ts

8 lines
223 B
TypeScript

import { test } from '@playwright/test';
/**
* Execute a test suite only if the condition is true
*/
export const describeOnCondition = (shouldDescribe: boolean) =>
shouldDescribe ? test.describe : test.describe.skip;