Skip to content

Commit b148b32

Browse files
chore(playwright): migrate themes to palettes (#29148)
Issue number: N/A --------- <!-- Please do not submit updates to dependencies unless it fixes an issue. --> <!-- Please try to limit your pull request to one type (bugfix, feature, etc). Submit multiple pull requests if needed. --> ## What is the current behavior? <!-- Please describe the current behavior that you are modifying. --> ## What is the new behavior? <!-- Please describe the behavior or changes that are being added by this PR. --> - Migrates the test infrastructure to use `palettes` instead of `themes` ## Does this introduce a breaking change? - [ ] Yes - [x] No <!-- If this introduces a breaking change: 1. Describe the impact and migration path for existing applications below. 2. Update the BREAKING.md file with the breaking change. 3. Add "BREAKING CHANGE: [...]" to the commit description when merging. See https://github.com/ionic-team/ionic-framework/blob/main/.github/CONTRIBUTING.md#footer for more information. --> ## Other information <!-- Any other information that is important to this PR such as screenshots of how the component looks before and after the change. --> This **does not** change where the light/dark/high contrast styles live or how they are consumed in the test infra. That work is done here: #29149 Co-authored-by: Liam DeBeasi <liamdebeasi@users.noreply.github.com>
1 parent 7821b78 commit b148b32

File tree

28 files changed

+56
-56
lines changed

28 files changed

+56
-56
lines changed

core/src/components/action-sheet/test/a11y/action-sheet.e2e.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ const testAriaButton = async (
4040
await expect(actionSheetButton).toHaveAttribute('aria-label', expectedAriaLabel);
4141
};
4242

43-
configs({ directions: ['ltr'], themes: ['dark', 'light'] }).forEach(({ config, title }) => {
43+
configs({ directions: ['ltr'], palettes: ['dark', 'light'] }).forEach(({ config, title }) => {
4444
test.describe(title('action-sheet: Axe testing'), () => {
4545
test('should not have accessibility violations when header is defined', async ({ page }) => {
4646
await page.setContent(

core/src/components/alert/test/a11y/alert.e2e.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ const testAria = async (
2828
expect(ariaDescribedBy).toBe(expectedAriaDescribedBy);
2929
};
3030

31-
configs({ directions: ['ltr'], themes: ['dark', 'light'] }).forEach(({ title, config }) => {
31+
configs({ directions: ['ltr'], palettes: ['dark', 'light'] }).forEach(({ title, config }) => {
3232
test.describe(title('alert: Axe testing'), () => {
3333
test('should not have accessibility violations when header and message are defined', async ({ page }) => {
3434
await page.setContent(

core/src/components/alert/test/basic/alert.e2e.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ configs().forEach(({ config, screenshot, title }) => {
100100
});
101101
});
102102

103-
configs({ themes: ['light', 'dark'] }).forEach(({ config, screenshot, title }) => {
103+
configs({ palettes: ['light', 'dark'] }).forEach(({ config, screenshot, title }) => {
104104
test.describe(title('should not have visual regressions'), () => {
105105
test('more than two buttons', async ({ page }) => {
106106
await page.setContent(

core/src/components/back-button/test/a11y/back-button.e2e.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { configs, test } from '@utils/test/playwright';
55
/**
66
* Only ios mode uses ion-color() for the back button
77
*/
8-
configs({ directions: ['ltr'], modes: ['ios'], themes: ['light', 'dark'] }).forEach(({ title, config }) => {
8+
configs({ directions: ['ltr'], modes: ['ios'], palettes: ['light', 'dark'] }).forEach(({ title, config }) => {
99
test.describe(title('back-button: a11y for ion-color()'), () => {
1010
test('should not have accessibility violations', async ({ page }) => {
1111
await page.setContent(

core/src/components/badge/test/a11y/badge.e2e.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ configs({ directions: ['ltr'] }).forEach(({ title, screenshot, config }) => {
2525
});
2626
});
2727

28-
configs({ directions: ['ltr'], themes: ['light', 'dark'] }).forEach(({ config, title }) => {
28+
configs({ directions: ['ltr'], palettes: ['light', 'dark'] }).forEach(({ config, title }) => {
2929
test.describe(title('badge: a11y'), () => {
3030
test('should not have accessibility violations', async ({ page }) => {
3131
/**

core/src/components/button/test/a11y/button.e2e.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import AxeBuilder from '@axe-core/playwright';
22
import { expect } from '@playwright/test';
33
import { configs, test } from '@utils/test/playwright';
44

5-
configs({ directions: ['ltr'], themes: ['light', 'dark'] }).forEach(({ title, config }) => {
5+
configs({ directions: ['ltr'], palettes: ['light', 'dark'] }).forEach(({ title, config }) => {
66
test.describe(title('button: a11y for ion-color()'), () => {
77
test('should not have accessibility violations', async ({ page }) => {
88
await page.setContent(
@@ -52,7 +52,7 @@ configs({ directions: ['ltr'], themes: ['light', 'dark'] }).forEach(({ title, co
5252
/**
5353
* Only ios mode uses ion-color() for the activated button state
5454
*/
55-
configs({ directions: ['ltr'], modes: ['ios'], themes: ['light', 'dark'] }).forEach(({ title, config }) => {
55+
configs({ directions: ['ltr'], modes: ['ios'], palettes: ['light', 'dark'] }).forEach(({ title, config }) => {
5656
test.describe(title('button: ios contrast'), () => {
5757
test('activated state should not have accessibility violations', async ({ page }) => {
5858
await page.setContent(

core/src/components/checkbox/test/a11y/checkbox.e2e.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import AxeBuilder from '@axe-core/playwright';
22
import { expect } from '@playwright/test';
33
import { configs, test } from '@utils/test/playwright';
44

5-
configs({ directions: ['ltr'], themes: ['light', 'dark'] }).forEach(({ title, config }) => {
5+
configs({ directions: ['ltr'], palettes: ['light', 'dark'] }).forEach(({ title, config }) => {
66
test.describe(title('checkbox: a11y'), () => {
77
test('should not have accessibility violations', async ({ page }) => {
88
await page.setContent(

core/src/components/fab-button/test/a11y/fab-button.e2e.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import AxeBuilder from '@axe-core/playwright';
22
import { expect } from '@playwright/test';
33
import { configs, test } from '@utils/test/playwright';
44

5-
configs({ directions: ['ltr'], themes: ['light', 'dark'] }).forEach(({ title, config }) => {
5+
configs({ directions: ['ltr'], palettes: ['light', 'dark'] }).forEach(({ title, config }) => {
66
test.describe(title('fab-button: a11y'), () => {
77
test('should not have accessibility violations', async ({ page }) => {
88
await page.setContent(

core/src/components/input/test/a11y/input.e2e.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import AxeBuilder from '@axe-core/playwright';
22
import { expect } from '@playwright/test';
33
import { configs, test } from '@utils/test/playwright';
44

5-
configs({ directions: ['ltr'], themes: ['light', 'dark'] }).forEach(({ title, config }) => {
5+
configs({ directions: ['ltr'], palettes: ['light', 'dark'] }).forEach(({ title, config }) => {
66
test.describe(title('input: a11y'), () => {
77
test('default layout should not have accessibility violations', async ({ page }) => {
88
await page.setContent(

core/src/components/item-sliding/test/a11y/item-sliding.e2e.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { configs, test } from '@utils/test/playwright';
44

55
import { testSlidingItem } from '../test.utils';
66

7-
configs({ directions: ['ltr'], themes: ['light', 'dark'] }).forEach(({ title, config }) => {
7+
configs({ directions: ['ltr'], palettes: ['light', 'dark'] }).forEach(({ title, config }) => {
88
test.describe(title('item-sliding: a11y for ion-color()'), () => {
99
test('should not have accessibility violations', async ({ page }) => {
1010
await page.setContent(

core/src/components/label/test/a11y/label.e2e.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ configs({ directions: ['ltr'] }).forEach(({ title, screenshot, config }) => {
8484
});
8585
});
8686

87-
configs({ directions: ['ltr'], modes: ['md'], themes: ['light', 'dark'] }).forEach(({ title, config }) => {
87+
configs({ directions: ['ltr'], modes: ['md'], palettes: ['light', 'dark'] }).forEach(({ title, config }) => {
8888
test.describe(title('label: a11y for ion-color()'), () => {
8989
test('should not have accessibility violations when focused', async ({ page }) => {
9090
/**

core/src/components/loading/test/a11y/loading.e2e.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import AxeBuilder from '@axe-core/playwright';
22
import { expect } from '@playwright/test';
33
import { configs, test } from '@utils/test/playwright';
44

5-
configs({ modes: ['ios'], directions: ['ltr'], themes: ['light', 'dark'] }).forEach(({ title, config }) => {
5+
configs({ modes: ['ios'], directions: ['ltr'], palettes: ['light', 'dark'] }).forEach(({ title, config }) => {
66
test.describe(title('loading: a11y'), () => {
77
test('should set aria-labelledby with a message', async ({ page }) => {
88
await page.setContent(

core/src/components/menu-button/test/a11y/menu-button.e2e.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { configs, test } from '@utils/test/playwright';
55
/**
66
* Only ios mode uses ion-color() for the menu button
77
*/
8-
configs({ directions: ['ltr'], modes: ['ios'], themes: ['light', 'dark'] }).forEach(({ title, config }) => {
8+
configs({ directions: ['ltr'], modes: ['ios'], palettes: ['light', 'dark'] }).forEach(({ title, config }) => {
99
test.describe(title('menu-button: a11y for ion-color()'), () => {
1010
test('should not have accessibility violations', async ({ page }) => {
1111
await page.setContent(

core/src/components/progress-bar/test/a11y/progress-bar.e2e.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import AxeBuilder from '@axe-core/playwright';
22
import { expect } from '@playwright/test';
33
import { configs, test } from '@utils/test/playwright';
44

5-
configs({ directions: ['ltr'], themes: ['light', 'dark'] }).forEach(({ title, config }) => {
5+
configs({ directions: ['ltr'], palettes: ['light', 'dark'] }).forEach(({ title, config }) => {
66
test.describe(title('progress-bar: a11y'), () => {
77
test('should not have accessibility violations', async ({ page }) => {
88
/**

core/src/components/radio/test/a11y/radio.e2e.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import AxeBuilder from '@axe-core/playwright';
22
import { expect } from '@playwright/test';
33
import { configs, test } from '@utils/test/playwright';
44

5-
configs({ directions: ['ltr'], themes: ['light', 'dark'] }).forEach(({ title, config }) => {
5+
configs({ directions: ['ltr'], palettes: ['light', 'dark'] }).forEach(({ title, config }) => {
66
test.describe(title('radio: a11y'), () => {
77
test('default layout should not have accessibility violations', async ({ page }) => {
88
await page.setContent(

core/src/components/range/test/a11y/range.e2e.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import AxeBuilder from '@axe-core/playwright';
22
import { expect } from '@playwright/test';
33
import { configs, test } from '@utils/test/playwright';
44

5-
configs({ directions: ['ltr'], themes: ['light', 'dark'] }).forEach(({ title, config }) => {
5+
configs({ directions: ['ltr'], palettes: ['light', 'dark'] }).forEach(({ title, config }) => {
66
test.describe(title('range: a11y'), () => {
77
test('should not have accessibility violations', async ({ page }) => {
88
await page.setContent(

core/src/components/refresher/test/a11y/refresher.e2e.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import AxeBuilder from '@axe-core/playwright';
22
import { expect } from '@playwright/test';
33
import { configs, test, dragElementBy } from '@utils/test/playwright';
44

5-
configs({ directions: ['ltr'], modes: ['md'], themes: ['light', 'dark'] }).forEach(({ config, title }) => {
5+
configs({ directions: ['ltr'], modes: ['md'], palettes: ['light', 'dark'] }).forEach(({ config, title }) => {
66
test.describe(title('refresher: a11y for ion-color()'), () => {
77
test('should not have accessibility violations', async ({ page }) => {
88
await page.setContent(

core/src/components/router-link/test/a11y/router-link.e2e.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import AxeBuilder from '@axe-core/playwright';
22
import { expect } from '@playwright/test';
33
import { configs, test } from '@utils/test/playwright';
44

5-
configs({ directions: ['ltr'], themes: ['light', 'dark'] }).forEach(({ title, config }) => {
5+
configs({ directions: ['ltr'], palettes: ['light', 'dark'] }).forEach(({ title, config }) => {
66
test.describe(title('router-link: a11y'), () => {
77
test('should not have accessibility violations', async ({ page }) => {
88
/**

core/src/components/segment/test/a11y/segment.e2e.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { configs, test } from '@utils/test/playwright';
55
/**
66
* Only md mode uses ion-color() for the segment button
77
*/
8-
configs({ directions: ['ltr'], modes: ['md'], themes: ['light', 'dark'] }).forEach(({ title, config }) => {
8+
configs({ directions: ['ltr'], modes: ['md'], palettes: ['light', 'dark'] }).forEach(({ title, config }) => {
99
test.describe(title('segment: a11y for ion-color()'), () => {
1010
test('should not have accessibility violations', async ({ page }) => {
1111
await page.setContent(

core/src/components/select-popover/test/a11y/select-popover.e2e.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import AxeBuilder from '@axe-core/playwright';
22
import { expect } from '@playwright/test';
33
import { configs, test } from '@utils/test/playwright';
44

5-
configs({ directions: ['ltr'], themes: ['dark', 'light'] }).forEach(({ config, title }) => {
5+
configs({ directions: ['ltr'], palettes: ['dark', 'light'] }).forEach(({ config, title }) => {
66
test.describe(title('select-popover: a11y'), () => {
77
test('should not have accessibility violations when header is defined', async ({ page }) => {
88
await page.setContent(

core/src/components/select/test/a11y/select.e2e.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import AxeBuilder from '@axe-core/playwright';
22
import { expect } from '@playwright/test';
33
import { configs, test } from '@utils/test/playwright';
44

5-
configs({ directions: ['ltr'], themes: ['light', 'dark'] }).forEach(({ title, config }) => {
5+
configs({ directions: ['ltr'], palettes: ['light', 'dark'] }).forEach(({ title, config }) => {
66
test.describe(title('textarea: a11y'), () => {
77
test('default layout should not have accessibility violations', async ({ page }) => {
88
await page.setContent(

core/src/components/textarea/test/a11y/textarea.e2e.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import AxeBuilder from '@axe-core/playwright';
22
import { expect } from '@playwright/test';
33
import { configs, test } from '@utils/test/playwright';
44

5-
configs({ directions: ['ltr'], themes: ['light', 'dark'] }).forEach(({ title, config }) => {
5+
configs({ directions: ['ltr'], palettes: ['light', 'dark'] }).forEach(({ title, config }) => {
66
test.describe(title('textarea: a11y'), () => {
77
test('default layout should not have accessibility violations', async ({ page }) => {
88
await page.setContent(

core/src/components/toast/test/a11y/toast.e2e.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import AxeBuilder from '@axe-core/playwright';
22
import { expect } from '@playwright/test';
33
import { configs, test } from '@utils/test/playwright';
44

5-
configs({ directions: ['ltr'], themes: ['dark', 'light'] }).forEach(({ title, config }) => {
5+
configs({ directions: ['ltr'], palettes: ['dark', 'light'] }).forEach(({ title, config }) => {
66
test.describe(title('toast: Axe testing'), () => {
77
test('should not have any axe violations with inline toasts', async ({ page }) => {
88
await page.setContent(
@@ -234,7 +234,7 @@ configs({ directions: ['ltr'] }).forEach(({ title, screenshot, config }) => {
234234
/**
235235
* High contrast mode tests
236236
*/
237-
configs({ directions: ['ltr'], themes: ['high-contrast-dark', 'high-contrast'] }).forEach(
237+
configs({ directions: ['ltr'], palettes: ['high-contrast-dark', 'high-contrast'] }).forEach(
238238
({ title, config, screenshot }) => {
239239
test.describe(title('toast: high contrast: buttons'), () => {
240240
test.beforeEach(async ({ page }) => {

core/src/components/toggle/test/a11y/toggle.e2e.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import AxeBuilder from '@axe-core/playwright';
22
import { expect } from '@playwright/test';
33
import { configs, test } from '@utils/test/playwright';
44

5-
configs({ directions: ['ltr'], themes: ['light', 'dark'] }).forEach(({ title, config }) => {
5+
configs({ directions: ['ltr'], palettes: ['light', 'dark'] }).forEach(({ title, config }) => {
66
test.describe(title('toggle: a11y'), () => {
77
test('should not have accessibility violations', async ({ page }) => {
88
await page.setContent(

core/src/css/test/a11y/typography.e2e.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ configs({ directions: ['ltr'], modes: ['ios'] }).forEach(({ title, screenshot, c
3535
});
3636
});
3737

38-
configs({ directions: ['ltr'], themes: ['light', 'dark'] }).forEach(({ config, title }) => {
38+
configs({ directions: ['ltr'], palettes: ['light', 'dark'] }).forEach(({ config, title }) => {
3939
test.describe(title('typography: a11y'), () => {
4040
test('should not have accessibility violations for anchor tags', async ({ page }) => {
4141
/**

core/src/themes/test/colors/theme.e2e.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ const styleTestHelpers = `
4949
* 6) The base color as the text color against the base color at 0.12 opacity as the background color
5050
* 7) The base color as the text color against the base color at 0.16 opacity as the background color
5151
*/
52-
configs({ modes: ['md'], directions: ['ltr'], themes: ['light', 'dark'] }).forEach(({ config, title }) => {
52+
configs({ modes: ['md'], directions: ['ltr'], palettes: ['light', 'dark'] }).forEach(({ config, title }) => {
5353
const colors = ['primary', 'secondary', 'tertiary', 'success', 'warning', 'danger', 'light', 'medium', 'dark'];
5454

5555
test.describe(title('theme'), () => {
@@ -153,7 +153,7 @@ configs({ modes: ['md'], directions: ['ltr'], themes: ['light', 'dark'] }).forEa
153153
});
154154
});
155155

156-
configs({ modes: ['md'], directions: ['ltr'], themes: ['high-contrast', 'high-contrast-dark'] }).forEach(
156+
configs({ modes: ['md'], directions: ['ltr'], palettes: ['high-contrast', 'high-contrast-dark'] }).forEach(
157157
({ config, title }) => {
158158
const colors = ['primary', 'secondary', 'tertiary', 'success', 'warning', 'danger', 'light', 'medium', 'dark'];
159159

core/src/utils/test/playwright/generator.ts

+20-20
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,15 @@ export type Direction = 'ltr' | 'rtl';
88
* - `high-contrast`: The high contrast light theme values.
99
* - `high-contrast-dark`: The high contrast dark theme values.
1010
*/
11-
export type Theme = 'light' | 'dark' | 'high-contrast' | 'high-contrast-dark';
11+
export type Palette = 'light' | 'dark' | 'high-contrast' | 'high-contrast-dark';
1212

1313
export type TitleFn = (title: string) => string;
1414
export type ScreenshotFn = (fileName: string) => string;
1515

1616
export interface TestConfig {
1717
mode: Mode;
1818
direction: Direction;
19-
theme: Theme;
19+
palette: Palette;
2020
}
2121

2222
interface TestUtilities {
@@ -28,7 +28,7 @@ interface TestUtilities {
2828
interface TestConfigOption {
2929
modes?: Mode[];
3030
directions?: Direction[];
31-
themes?: Theme[];
31+
palettes?: Palette[];
3232
}
3333

3434
/**
@@ -38,39 +38,39 @@ interface TestConfigOption {
3838
* each test title is unique.
3939
*/
4040
const generateTitle = (title: string, config: TestConfig): string => {
41-
const { mode, direction, theme } = config;
41+
const { mode, direction, palette } = config;
4242

43-
if (theme === 'light') {
43+
if (palette === 'light') {
4444
/**
4545
* Ionic has many existing tests that existed prior to
46-
* the introduction of theme testing. To maintain backwards
47-
* compatibility, we will not include the theme in the test
48-
* title if the theme is set to light.
46+
* the introduction of palette testing. To maintain backwards
47+
* compatibility, we will not include the palette in the test
48+
* title if the palette is set to light.
4949
*/
5050
return `${title} - ${mode}/${direction}`;
5151
}
5252

53-
return `${title} - ${mode}/${direction}/${theme}`;
53+
return `${title} - ${mode}/${direction}/${palette}`;
5454
};
5555

5656
/**
5757
* Generates a unique filename based on a base filename
5858
* and a test config.
5959
*/
6060
const generateScreenshotName = (fileName: string, config: TestConfig): string => {
61-
const { mode, direction, theme } = config;
61+
const { mode, direction, palette } = config;
6262

63-
if (theme === 'light') {
63+
if (palette === 'light') {
6464
/**
6565
* Ionic has many existing tests that existed prior to
66-
* the introduction of theme testing. To maintain backwards
67-
* compatibility, we will not include the theme in the screenshot
68-
* name if the theme is set to light.
66+
* the introduction of palette testing. To maintain backwards
67+
* compatibility, we will not include the palette in the screenshot
68+
* name if the palette is set to light.
6969
*/
7070
return `${fileName}-${mode}-${direction}.png`;
7171
}
7272

73-
return `${fileName}-${mode}-${direction}-${theme}.png`;
73+
return `${fileName}-${mode}-${direction}-${palette}.png`;
7474
};
7575

7676
/**
@@ -87,12 +87,12 @@ export const configs = (testConfig: TestConfigOption = DEFAULT_TEST_CONFIG_OPTIO
8787
*/
8888
const processedMode = modes ?? DEFAULT_MODES;
8989
const processedDirection = directions ?? DEFAULT_DIRECTIONS;
90-
const processedTheme = testConfig.themes ?? DEFAULT_THEMES;
90+
const processedPalette = testConfig.palettes ?? DEFAULT_PALETTES;
9191

9292
processedMode.forEach((mode) => {
9393
processedDirection.forEach((direction) => {
94-
processedTheme.forEach((theme) => {
95-
configs.push({ mode, direction, theme });
94+
processedPalette.forEach((palette) => {
95+
configs.push({ mode, direction, palette });
9696
});
9797
});
9898
});
@@ -108,10 +108,10 @@ export const configs = (testConfig: TestConfigOption = DEFAULT_TEST_CONFIG_OPTIO
108108

109109
const DEFAULT_MODES: Mode[] = ['ios', 'md'];
110110
const DEFAULT_DIRECTIONS: Direction[] = ['ltr', 'rtl'];
111-
const DEFAULT_THEMES: Theme[] = ['light'];
111+
const DEFAULT_PALETTES: Palette[] = ['light'];
112112

113113
const DEFAULT_TEST_CONFIG_OPTION = {
114114
modes: DEFAULT_MODES,
115115
directions: DEFAULT_DIRECTIONS,
116-
themes: DEFAULT_THEMES,
116+
palettes: DEFAULT_PALETTES,
117117
};

0 commit comments

Comments
 (0)