Skip to content

Commit d4acfc6

Browse files
committed
test(input-otp): add tests for ionic theme
1 parent f88bb31 commit d4acfc6

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

core/src/components/input-otp/test/color/input-otp.e2e.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { configs, test } from '@utils/test/playwright';
33

44
const VALID_FILLS = ['outline', 'solid'];
55

6-
configs({ directions: ['ltr'] }).forEach(({ title, screenshot, config }) => {
6+
configs({ modes: ['ios', 'md', 'ionic-md'], directions: ['ltr'] }).forEach(({ title, screenshot, config }) => {
77
test.describe(title('input-otp: color'), () => {
88
// Test all colors with all fills
99
VALID_FILLS.forEach((fill) => {

core/src/components/input-otp/test/fill/input-otp.e2e.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { configs, test } from '@utils/test/playwright';
33

44
const VALID_FILLS = ['outline', 'solid'];
55

6-
configs({ directions: ['ltr'] }).forEach(({ title, screenshot, config }) => {
6+
configs({ modes: ['ios', 'md', 'ionic-md'], directions: ['ltr'] }).forEach(({ title, screenshot, config }) => {
77
test.describe(title('input-otp: fill'), () => {
88
VALID_FILLS.forEach((fill) => {
99
test(`${fill} fill should not have visual regressions`, async ({ page }) => {

core/src/components/input-otp/test/separators/input-otp.e2e.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ const collectWarnings = async (page: E2EPage): Promise<string[]> => {
3030
return warnings;
3131
};
3232

33-
configs({ directions: ['ltr'] }).forEach(({ title, screenshot, config }) => {
33+
configs({ modes: ['ios', 'md', 'ionic-md'], directions: ['ltr'] }).forEach(({ title, screenshot, config }) => {
3434
test.describe(title('input-otp: separators'), () => {
3535
// Test separators with all sizes
3636
VALID_SIZES.forEach((size) => {

core/src/components/input-otp/test/shape/input-otp.e2e.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { configs, test } from '@utils/test/playwright';
44
const VALID_SHAPES = ['rectangular', 'round', 'soft'];
55
const VALID_SIZES = ['small', 'medium', 'large'];
66

7-
configs({ directions: ['ltr'] }).forEach(({ title, screenshot, config }) => {
7+
configs({ modes: ['ios', 'md', 'ionic-md'], directions: ['ltr'] }).forEach(({ title, screenshot, config }) => {
88
test.describe(title('input-otp: shape'), () => {
99
// Test all shapes with all sizes
1010
VALID_SHAPES.forEach((shape) => {

core/src/components/input-otp/test/size/input-otp.e2e.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { configs, test } from '@utils/test/playwright';
33

44
const VALID_SIZES = ['small', 'medium', 'large'];
55

6-
configs({ directions: ['ltr'] }).forEach(({ title, screenshot, config }) => {
6+
configs({ modes: ['ios', 'md', 'ionic-md'], directions: ['ltr'] }).forEach(({ title, screenshot, config }) => {
77
test.describe(title('input-otp: size'), () => {
88
VALID_SIZES.forEach((size) => {
99
test(`${size} size should not have visual regressions`, async ({ page }) => {

0 commit comments

Comments
 (0)