refactor(): update directories to use kebab case (#27230)
Issue number: N/A --------- <!-- Please refer to our contributing documentation for any questions on submitting a pull request, or let us know here if you need any help: https://ionicframework.com/docs/building/contributing --> <!-- Some docs updates need to be made in the `ionic-docs` repo, in a separate PR. See https://github.com/ionic-team/ionic-framework/blob/main/.github/CONTRIBUTING.md#modifying-documentation for details. --> <!-- 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. --> The team decided on some new processes for adding tests. One of those processes is that test directories should use kebab case. ## What is the new behavior? <!-- Please describe the behavior or changes that are being added by this PR. --> - Updates test directories to use kebab case ## Does this introduce a breaking change? - [ ] Yes - [x] No <!-- If this introduces a breaking change, please describe the impact and migration path for existing applications below. --> ## Other information <!-- Any other information that is important to this PR such as screenshots of how the component looks before and after the change. -->
@ -5,7 +5,7 @@ test.describe('action sheet: isOpen', () => {
|
||||
test.beforeEach(async ({ page, skip }) => {
|
||||
skip.rtl('isOpen does not behave differently in RTL');
|
||||
skip.mode('md', 'isOpen does not behave differently in MD');
|
||||
await page.goto('/src/components/action-sheet/test/isOpen');
|
||||
await page.goto('/src/components/action-sheet/test/is-open');
|
||||
});
|
||||
|
||||
test('should open the action sheet', async ({ page }) => {
|
||||
@ -5,7 +5,7 @@ test.describe('alert: isOpen', () => {
|
||||
test.beforeEach(async ({ page, skip }) => {
|
||||
skip.rtl('isOpen does not behave differently in RTL');
|
||||
skip.mode('md', 'isOpen does not behave differently in MD');
|
||||
await page.goto('/src/components/alert/test/isOpen');
|
||||
await page.goto('/src/components/alert/test/is-open');
|
||||
});
|
||||
|
||||
test('should open the alert', async ({ page }) => {
|
||||
|
Before Width: | Height: | Size: 22 KiB After Width: | Height: | Size: 22 KiB |
|
Before Width: | Height: | Size: 25 KiB After Width: | Height: | Size: 25 KiB |
|
Before Width: | Height: | Size: 20 KiB After Width: | Height: | Size: 20 KiB |
|
Before Width: | Height: | Size: 17 KiB After Width: | Height: | Size: 17 KiB |
|
Before Width: | Height: | Size: 20 KiB After Width: | Height: | Size: 20 KiB |
|
Before Width: | Height: | Size: 15 KiB After Width: | Height: | Size: 15 KiB |
|
Before Width: | Height: | Size: 29 KiB After Width: | Height: | Size: 29 KiB |
|
Before Width: | Height: | Size: 34 KiB After Width: | Height: | Size: 34 KiB |
|
Before Width: | Height: | Size: 28 KiB After Width: | Height: | Size: 28 KiB |
|
Before Width: | Height: | Size: 23 KiB After Width: | Height: | Size: 23 KiB |
|
Before Width: | Height: | Size: 27 KiB After Width: | Height: | Size: 27 KiB |
|
Before Width: | Height: | Size: 24 KiB After Width: | Height: | Size: 24 KiB |
|
Before Width: | Height: | Size: 21 KiB After Width: | Height: | Size: 21 KiB |
|
Before Width: | Height: | Size: 24 KiB After Width: | Height: | Size: 24 KiB |
|
Before Width: | Height: | Size: 19 KiB After Width: | Height: | Size: 19 KiB |
|
Before Width: | Height: | Size: 16 KiB After Width: | Height: | Size: 16 KiB |
|
Before Width: | Height: | Size: 19 KiB After Width: | Height: | Size: 19 KiB |
|
Before Width: | Height: | Size: 15 KiB After Width: | Height: | Size: 15 KiB |
@ -5,7 +5,7 @@ test.describe('loading: isOpen', () => {
|
||||
test.beforeEach(async ({ page, skip }) => {
|
||||
skip.rtl('isOpen does not behave differently in RTL');
|
||||
skip.mode('md', 'isOpen does not behave differently in MD');
|
||||
await page.goto('/src/components/loading/test/isOpen');
|
||||
await page.goto('/src/components/loading/test/is-open');
|
||||
});
|
||||
|
||||
test('should open the loading indicator', async ({ page }) => {
|
||||
@ -5,7 +5,7 @@ test.describe('modal: canDismiss', () => {
|
||||
test.describe('regular modal', () => {
|
||||
test.beforeEach(async ({ page, skip }) => {
|
||||
skip.rtl();
|
||||
await page.goto('/src/components/modal/test/canDismiss');
|
||||
await page.goto('/src/components/modal/test/can-dismiss');
|
||||
});
|
||||
test('should dismiss when canDismiss is true', async ({ page }) => {
|
||||
const ionModalDidPresent = await page.spyOnEvent('ionModalDidPresent');
|
||||
@ -80,7 +80,7 @@ test.describe('modal: canDismiss', () => {
|
||||
test.beforeEach(async ({ page, skip }) => {
|
||||
skip.rtl();
|
||||
skip.mode('md');
|
||||
await page.goto('/src/components/modal/test/canDismiss');
|
||||
await page.goto('/src/components/modal/test/can-dismiss');
|
||||
await page.click('#radio-card');
|
||||
});
|
||||
test('should dismiss when canDismiss is true', async ({ page }) => {
|
||||
@ -139,7 +139,7 @@ test.describe('modal: canDismiss', () => {
|
||||
test.beforeEach(async ({ page, skip }) => {
|
||||
skip.rtl();
|
||||
skip.mode('md');
|
||||
await page.goto('/src/components/modal/test/canDismiss');
|
||||
await page.goto('/src/components/modal/test/can-dismiss');
|
||||
await page.click('#radio-card');
|
||||
});
|
||||
|
||||
@ -224,7 +224,7 @@ test.describe('modal: canDismiss', () => {
|
||||
test.describe('sheet modal', () => {
|
||||
test.beforeEach(async ({ page, skip }) => {
|
||||
skip.rtl();
|
||||
await page.goto('/src/components/modal/test/canDismiss');
|
||||
await page.goto('/src/components/modal/test/can-dismiss');
|
||||
await page.click('#radio-sheet');
|
||||
});
|
||||
test('should dismiss when canDismiss is true', async ({ page }) => {
|
||||
@ -388,7 +388,7 @@ test.describe('modal: canDismiss', () => {
|
||||
test.beforeEach(async ({ page, skip }) => {
|
||||
skip.mode('md');
|
||||
skip.rtl();
|
||||
await page.goto('/src/components/modal/test/canDismiss');
|
||||
await page.goto('/src/components/modal/test/can-dismiss');
|
||||
});
|
||||
test('should pass data and role when calling dismiss', async ({ page }) => {
|
||||
const ionModalDidPresent = await page.spyOnEvent('ionModalDidPresent');
|
||||
@ -5,7 +5,7 @@ test.describe('modal: isOpen', () => {
|
||||
test.beforeEach(async ({ page, skip }) => {
|
||||
skip.rtl();
|
||||
skip.mode('md');
|
||||
await page.goto('/src/components/modal/test/isOpen');
|
||||
await page.goto('/src/components/modal/test/is-open');
|
||||
});
|
||||
|
||||
test('should open the modal', async ({ page }) => {
|
||||
@ -5,7 +5,7 @@ test.describe('picker: isOpen', () => {
|
||||
test.beforeEach(async ({ page, skip }) => {
|
||||
skip.rtl('isOpen does not behave differently in RTL');
|
||||
skip.mode('md', 'isOpen does not behave differently in MD');
|
||||
await page.goto('/src/components/picker/test/isOpen');
|
||||
await page.goto('/src/components/picker/test/is-open');
|
||||
});
|
||||
|
||||
test('should open the picker', async ({ page }) => {
|
||||
@ -5,7 +5,7 @@ import { openPopover } from '../test.utils';
|
||||
|
||||
test.describe('popover: dismissOnSelect', async () => {
|
||||
test.beforeEach(async ({ page }) => {
|
||||
await page.goto('/src/components/popover/test/dismissOnSelect');
|
||||
await page.goto('/src/components/popover/test/dismiss-on-select');
|
||||
});
|
||||
|
||||
test('should not dismiss a popover when clicking a hover trigger', async ({ page }) => {
|
||||
@ -3,7 +3,7 @@ import { test } from '@utils/test/playwright';
|
||||
|
||||
test.describe('range: activeBarStart', () => {
|
||||
test('should not have visual regressions', async ({ page }) => {
|
||||
await page.goto(`/src/components/range/test/activeBarStart`);
|
||||
await page.goto(`/src/components/range/test/active-bar-start`);
|
||||
|
||||
await page.setIonViewport();
|
||||
|
||||
|
Before Width: | Height: | Size: 41 KiB After Width: | Height: | Size: 41 KiB |
|
Before Width: | Height: | Size: 57 KiB After Width: | Height: | Size: 57 KiB |
|
Before Width: | Height: | Size: 38 KiB After Width: | Height: | Size: 38 KiB |
|
Before Width: | Height: | Size: 41 KiB After Width: | Height: | Size: 41 KiB |
|
Before Width: | Height: | Size: 56 KiB After Width: | Height: | Size: 56 KiB |
|
Before Width: | Height: | Size: 38 KiB After Width: | Height: | Size: 38 KiB |
|
Before Width: | Height: | Size: 30 KiB After Width: | Height: | Size: 30 KiB |
|
Before Width: | Height: | Size: 44 KiB After Width: | Height: | Size: 44 KiB |
|
Before Width: | Height: | Size: 28 KiB After Width: | Height: | Size: 28 KiB |
|
Before Width: | Height: | Size: 30 KiB After Width: | Height: | Size: 30 KiB |
|
Before Width: | Height: | Size: 45 KiB After Width: | Height: | Size: 45 KiB |
|
Before Width: | Height: | Size: 28 KiB After Width: | Height: | Size: 28 KiB |
@ -3,7 +3,7 @@ import { test } from '@utils/test/playwright';
|
||||
|
||||
test.describe('range: activeBarStart', () => {
|
||||
test('should not have visual regressions', async ({ page }) => {
|
||||
await page.goto(`/src/components/range/test/legacy/activeBarStart`);
|
||||
await page.goto(`/src/components/range/test/legacy/active-bar-start`);
|
||||
|
||||
await page.setIonViewport();
|
||||
|
||||
|
Before Width: | Height: | Size: 155 KiB After Width: | Height: | Size: 155 KiB |
|
Before Width: | Height: | Size: 58 KiB After Width: | Height: | Size: 58 KiB |
|
Before Width: | Height: | Size: 143 KiB After Width: | Height: | Size: 143 KiB |
|
Before Width: | Height: | Size: 153 KiB After Width: | Height: | Size: 153 KiB |
|
Before Width: | Height: | Size: 58 KiB After Width: | Height: | Size: 58 KiB |
|
Before Width: | Height: | Size: 143 KiB After Width: | Height: | Size: 143 KiB |
|
Before Width: | Height: | Size: 105 KiB After Width: | Height: | Size: 105 KiB |
|
Before Width: | Height: | Size: 40 KiB After Width: | Height: | Size: 40 KiB |
|
Before Width: | Height: | Size: 98 KiB After Width: | Height: | Size: 98 KiB |
|
Before Width: | Height: | Size: 104 KiB After Width: | Height: | Size: 104 KiB |
|
Before Width: | Height: | Size: 40 KiB After Width: | Height: | Size: 40 KiB |
|
Before Width: | Height: | Size: 98 KiB After Width: | Height: | Size: 98 KiB |
@ -5,7 +5,7 @@ test.describe('toast: isOpen', () => {
|
||||
test.beforeEach(async ({ page, skip }) => {
|
||||
skip.rtl('isOpen does not behave differently in RTL');
|
||||
skip.mode('md', 'isOpen does not behave differently in MD');
|
||||
await page.goto('/src/components/toast/test/isOpen');
|
||||
await page.goto('/src/components/toast/test/is-open');
|
||||
});
|
||||
|
||||
test('should open the toast', async ({ page }) => {
|
||||