mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-11-09 16:16:41 +08:00
test(playwright): add new utilities for skipping tests (#25758)
This commit is contained in:
@ -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`);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user