test: migrate form control usages to modern syntax (#28897)

Issue number: Internal

---------

<!-- 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. -->

Several tests were still using the legacy form syntax.

## What is the new behavior?
<!-- Please describe the behavior or changes that are being added by
this PR. -->

- Migrated tests in `core`, `angular`, and `vue` to use the modern form
syntax (`react` did not have form controls).

I opted not to migrate `item/test/highlight` and `item/test/counter`
because those tests are going to be removed in the future once the
deprecate item APIs are removed.

## 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. -->

---------

Co-authored-by: ionitron <hi@ionicframework.com>
Co-authored-by: Maria Hutt <thetaPC@users.noreply.github.com>
This commit is contained in:
Liam DeBeasi
2024-01-30 11:14:02 -05:00
committed by GitHub
parent f6fc22bba6
commit bf34e0e247
123 changed files with 164 additions and 323 deletions

View File

@@ -48,37 +48,31 @@
<ion-content class="ion-padding">
<ion-item>
<ion-label>Input Above Keyboard</ion-label>
<ion-input id="input-above-keyboard"></ion-input>
<ion-input label="Input Above Keyboard" id="input-above-keyboard"></ion-input>
</ion-item>
<ion-item>
<ion-label>Textarea Above Keyboard</ion-label>
<ion-textarea id="textarea-above-keyboard"></ion-textarea>
<ion-textarea label="Textarea Above Keyboard" id="textarea-above-keyboard"></ion-textarea>
</ion-item>
<div class="spacer" style="height: 400px"></div>
<ion-item id="item-below-keyboard">
<ion-label>Input Below Keyboard</ion-label>
<ion-input id="input-below-keyboard"></ion-input>
<ion-input label="Input Below Keyboard" id="input-below-keyboard"></ion-input>
</ion-item>
<ion-item>
<ion-label>Textarea Below Keyboard</ion-label>
<ion-textarea id="textarea-below-keyboard"></ion-textarea>
<ion-textarea label="Textarea Below Keyboard" id="textarea-below-keyboard"></ion-textarea>
</ion-item>
<div class="spacer" style="height: 400px"></div>
<ion-item>
<ion-label>Input Outside Viewport</ion-label>
<ion-input id="input-outside-viewport"></ion-input>
<ion-input label="Input Outside Viewport" id="input-outside-viewport"></ion-input>
</ion-item>
<ion-item>
<ion-label>Textarea Outside Viewport</ion-label>
<ion-textarea id="textarea-outside-viewport"></ion-textarea>
<ion-textarea label="Textarea Outside Viewport" id="textarea-outside-viewport"></ion-textarea>
</ion-item>
</ion-content>

View File

@@ -43,8 +43,8 @@
<ion-footer>
<ion-toolbar>
<ion-input type="text" placeholder="Enter some text..."></ion-input>
<ion-input type="text" placeholder="Enter some text..."></ion-input>
<ion-input aria-label="input" type="text" placeholder="Enter some text..."></ion-input>
<ion-input aria-label="input" type="text" placeholder="Enter some text..."></ion-input>
</ion-toolbar>
</ion-footer>
</ion-app>

View File

@@ -34,8 +34,7 @@
<ion-content class="ion-padding">
<ion-item>
<ion-label>Text Input</ion-label>
<ion-input id="root-input"></ion-input>
<ion-input label="Text Input" id="root-input"></ion-input>
</ion-item>
<ion-button id="create" onclick="createModal()">Create a Modal</ion-button>
@@ -66,8 +65,7 @@
Modal Content
<ion-item>
<ion-label>Text Input</ion-label>
<ion-input class="modal-input modal-input-${id}"></ion-input>
<ion-input label="Text Input" class="modal-input modal-input-${id}"></ion-input>
</ion-item>
<ion-button id="modal-create">Create a Modal</ion-button>