test(playwright): add new utilities for skipping tests (#25758)

This commit is contained in:
Liam DeBeasi
2022-08-16 08:18:42 -05:00
committed by GitHub
parent e750e33616
commit 79c65dc382
40 changed files with 222 additions and 145 deletions

View File

@ -14,11 +14,8 @@ test.describe('app: safe-area', () => {
expect(await page.screenshot()).toMatchSnapshot(`app-${screenshotModifier}-diff-${page.getSnapshotSettings()}.png`);
};
test.beforeEach(async ({ page }, testInfo) => {
test.skip(
testInfo.project.metadata.rtl === true,
'Safe area tests only check top and bottom edges. RTL checks are not required here.'
);
test.beforeEach(async ({ page, skip }) => {
skip.rtl('Safe area tests only check top and bottom edges. RTL checks are not required here.');
await page.goto(`/src/components/app/test/safe-area`);
});