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. -->
This commit is contained in:
Liam DeBeasi
2023-04-18 16:10:56 -04:00
committed by GitHub
parent 80d8c66766
commit c0aea33576
67 changed files with 14 additions and 14 deletions

View File

@ -5,7 +5,7 @@ test.describe('action sheet: isOpen', () => {
test.beforeEach(async ({ page, skip }) => { test.beforeEach(async ({ page, skip }) => {
skip.rtl('isOpen does not behave differently in RTL'); skip.rtl('isOpen does not behave differently in RTL');
skip.mode('md', 'isOpen does not behave differently in MD'); 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 }) => { test('should open the action sheet', async ({ page }) => {

View File

@ -5,7 +5,7 @@ test.describe('alert: isOpen', () => {
test.beforeEach(async ({ page, skip }) => { test.beforeEach(async ({ page, skip }) => {
skip.rtl('isOpen does not behave differently in RTL'); skip.rtl('isOpen does not behave differently in RTL');
skip.mode('md', 'isOpen does not behave differently in MD'); 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 }) => { test('should open the alert', async ({ page }) => {

View File

@ -5,7 +5,7 @@ test.describe('loading: isOpen', () => {
test.beforeEach(async ({ page, skip }) => { test.beforeEach(async ({ page, skip }) => {
skip.rtl('isOpen does not behave differently in RTL'); skip.rtl('isOpen does not behave differently in RTL');
skip.mode('md', 'isOpen does not behave differently in MD'); 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 }) => { test('should open the loading indicator', async ({ page }) => {

View File

@ -5,7 +5,7 @@ test.describe('modal: canDismiss', () => {
test.describe('regular modal', () => { test.describe('regular modal', () => {
test.beforeEach(async ({ page, skip }) => { test.beforeEach(async ({ page, skip }) => {
skip.rtl(); 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 }) => { test('should dismiss when canDismiss is true', async ({ page }) => {
const ionModalDidPresent = await page.spyOnEvent('ionModalDidPresent'); const ionModalDidPresent = await page.spyOnEvent('ionModalDidPresent');
@ -80,7 +80,7 @@ test.describe('modal: canDismiss', () => {
test.beforeEach(async ({ page, skip }) => { test.beforeEach(async ({ page, skip }) => {
skip.rtl(); skip.rtl();
skip.mode('md'); 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'); await page.click('#radio-card');
}); });
test('should dismiss when canDismiss is true', async ({ page }) => { test('should dismiss when canDismiss is true', async ({ page }) => {
@ -139,7 +139,7 @@ test.describe('modal: canDismiss', () => {
test.beforeEach(async ({ page, skip }) => { test.beforeEach(async ({ page, skip }) => {
skip.rtl(); skip.rtl();
skip.mode('md'); 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'); await page.click('#radio-card');
}); });
@ -224,7 +224,7 @@ test.describe('modal: canDismiss', () => {
test.describe('sheet modal', () => { test.describe('sheet modal', () => {
test.beforeEach(async ({ page, skip }) => { test.beforeEach(async ({ page, skip }) => {
skip.rtl(); skip.rtl();
await page.goto('/src/components/modal/test/canDismiss'); await page.goto('/src/components/modal/test/can-dismiss');
await page.click('#radio-sheet'); await page.click('#radio-sheet');
}); });
test('should dismiss when canDismiss is true', async ({ page }) => { test('should dismiss when canDismiss is true', async ({ page }) => {
@ -388,7 +388,7 @@ test.describe('modal: canDismiss', () => {
test.beforeEach(async ({ page, skip }) => { test.beforeEach(async ({ page, skip }) => {
skip.mode('md'); skip.mode('md');
skip.rtl(); 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 }) => { test('should pass data and role when calling dismiss', async ({ page }) => {
const ionModalDidPresent = await page.spyOnEvent('ionModalDidPresent'); const ionModalDidPresent = await page.spyOnEvent('ionModalDidPresent');

View File

@ -5,7 +5,7 @@ test.describe('modal: isOpen', () => {
test.beforeEach(async ({ page, skip }) => { test.beforeEach(async ({ page, skip }) => {
skip.rtl(); skip.rtl();
skip.mode('md'); 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 }) => { test('should open the modal', async ({ page }) => {

View File

@ -5,7 +5,7 @@ test.describe('picker: isOpen', () => {
test.beforeEach(async ({ page, skip }) => { test.beforeEach(async ({ page, skip }) => {
skip.rtl('isOpen does not behave differently in RTL'); skip.rtl('isOpen does not behave differently in RTL');
skip.mode('md', 'isOpen does not behave differently in MD'); 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 }) => { test('should open the picker', async ({ page }) => {

View File

@ -5,7 +5,7 @@ import { openPopover } from '../test.utils';
test.describe('popover: dismissOnSelect', async () => { test.describe('popover: dismissOnSelect', async () => {
test.beforeEach(async ({ page }) => { 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 }) => { test('should not dismiss a popover when clicking a hover trigger', async ({ page }) => {

View File

@ -3,7 +3,7 @@ import { test } from '@utils/test/playwright';
test.describe('range: activeBarStart', () => { test.describe('range: activeBarStart', () => {
test('should not have visual regressions', async ({ page }) => { 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(); await page.setIonViewport();

View File

@ -3,7 +3,7 @@ import { test } from '@utils/test/playwright';
test.describe('range: activeBarStart', () => { test.describe('range: activeBarStart', () => {
test('should not have visual regressions', async ({ page }) => { 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(); await page.setIonViewport();

View File

@ -5,7 +5,7 @@ test.describe('toast: isOpen', () => {
test.beforeEach(async ({ page, skip }) => { test.beforeEach(async ({ page, skip }) => {
skip.rtl('isOpen does not behave differently in RTL'); skip.rtl('isOpen does not behave differently in RTL');
skip.mode('md', 'isOpen does not behave differently in MD'); 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 }) => { test('should open the toast', async ({ page }) => {