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

This commit is contained in:
octicon-git-branch(16/)
octicon-tag(16/)
Liam DeBeasi
2022-08-16 08:18:42 -05:00
committed by GitHub
gitea-unlock(16/)
parent e750e33616
commit 79c65dc382
octicon-diff(16/tw-mr-1) 40 changed files with 222 additions and 145 deletions

5
core/src/components/radio/test/a11y/radio.e2e.ts
View File

@@ -2,9 +2,8 @@ import { expect } from '@playwright/test';
import { test } from '@utils/test/playwright';
test.describe('radio: a11y', () => {
// eslint-disable-next-line no-empty-pattern
test.beforeEach(({}, testInfo) => {
test.skip(testInfo.project.metadata.rtl === true, 'This does not test LTR vs RTL logic.');
test.beforeEach(({ skip }) => {
skip.rtl();
});
test('tabbing should switch between radio groups', async ({ page, browserName }) => {
const tabKey = browserName === 'webkit' ? 'Alt+Tab' : 'Tab';

5
core/src/components/radio/test/basic/radio.e2e.ts
View File

@@ -97,9 +97,8 @@ test.describe('radio: rendering', () => {
});
test.describe('radio: interaction', () => {
// eslint-disable-next-line no-empty-pattern
test.beforeEach(({}, testInfo) => {
test.skip(testInfo.project.metadata.rtl === true, 'This does not test LTR vs RTL logic.');
test.beforeEach(({ skip }) => {
skip.rtl();
});
test('radio should be checked when activated', async ({ page }) => {
await page.setContent(`