test(list): use modern form syntax (#27187)

<!-- 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 list inset test is using the legacy form syntax in the test template
and for screenshot tests.

<!-- Issues are required for both bug fixes and features. -->
Issue URL: N/A


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

- Updates the tests to use the modern form control syntax

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

---------

Co-authored-by: ionitron <hi@ionicframework.com>
This commit is contained in:
Sean Perkins
2023-04-13 09:43:45 -04:00
committed by GitHub
parent 114fe28f3c
commit 67eb272cf2
14 changed files with 10 additions and 17 deletions

View File

@@ -55,33 +55,27 @@
<ion-label>List Header</ion-label>
</ion-list-header>
<ion-item>
<ion-label position="stacked">Stacked Inputs</ion-label>
<ion-input></ion-input>
<ion-input label-placement="stacked" label="Stacked Inputs"></ion-input>
</ion-item>
<ion-item>
<ion-label position="stacked">Stacked Inputs</ion-label>
<ion-input></ion-input>
<ion-input label-placement="stacked" label="Stacked Inputs"></ion-input>
</ion-item>
<ion-item>
<ion-label position="stacked">Stacked Inputs</ion-label>
<ion-input></ion-input>
<ion-input label-placement="stacked" label="Stacked Inputs"></ion-input>
</ion-item>
</ion-list>
<ion-list inset>
<ion-item>
<ion-label>Default Input</ion-label>
<ion-input></ion-input>
<ion-input label="Default Input"></ion-input>
</ion-item>
<ion-item>
<ion-label position="stacked">Stacked Input</ion-label>
<ion-input></ion-input>
<ion-input label-placement="stacked" label="Stacked Input"></ion-input>
</ion-item>
<ion-item>
<ion-label>Normal Select</ion-label>
<ion-select>
<ion-select label="Normal Select">
<ion-select-option>1</ion-select-option>
<ion-select-option>2</ion-select-option>
<ion-select-option>3</ion-select-option>
@@ -89,8 +83,7 @@
</ion-item>
<ion-item>
<ion-label position="stacked">Stacked Select</ion-label>
<ion-select>
<ion-select label-placement="stacked" label="Stacked Select">
<ion-select-option>1</ion-select-option>
<ion-select-option>2</ion-select-option>
<ion-select-option>3</ion-select-option>

View File

@@ -11,7 +11,7 @@ test.describe('list: inset', () => {
<div class="wrapper" style="display: flex">
<ion-list inset="true" style="width: 100%" lines="full">
<ion-item>
<ion-input value="Input Text"></ion-input>
<ion-input aria-label="Input" value="Input Text"></ion-input>
</ion-item>
<ion-item>Pokémon Yellow</ion-item>
<ion-item lines="inset">Super Metroid (with Inset Line)</ion-item>
@@ -33,7 +33,7 @@ test.describe('list: inset', () => {
<div class="wrapper" style="display: flex">
<ion-list inset="true" style="width: 100%" lines="inset">
<ion-item>
<ion-input value="Input Text"></ion-input>
<ion-input aria-label="Input" value="Input Text"></ion-input>
</ion-item>
<ion-item>Pokémon Yellow</ion-item>
<ion-item lines="full">Super Metroid (with Full Line)</ion-item>
@@ -55,7 +55,7 @@ test.describe('list: inset', () => {
<div class="wrapper" style="display: flex">
<ion-list inset="true" style="width: 100%" lines="none">
<ion-item>
<ion-input value="Input Text"></ion-input>
<ion-input aria-label="Input" value="Input Text"></ion-input>
</ion-item>
<ion-item>Pokémon Yellow</ion-item>
<ion-item lines="full">Super Metroid (with Full Line)</ion-item>

View File

Binary file not shown.

Before

Width:  |  Height:  |  Size: 14 KiB

After

Width:  |  Height:  |  Size: 14 KiB

View File

Binary file not shown.

Before

Width:  |  Height:  |  Size: 16 KiB

After

Width:  |  Height:  |  Size: 16 KiB

View File

Binary file not shown.

Before

Width:  |  Height:  |  Size: 12 KiB

After

Width:  |  Height:  |  Size: 12 KiB

View File

Binary file not shown.

Before

Width:  |  Height:  |  Size: 14 KiB

After

Width:  |  Height:  |  Size: 14 KiB

View File

Binary file not shown.

Before

Width:  |  Height:  |  Size: 16 KiB

After

Width:  |  Height:  |  Size: 16 KiB

View File

Binary file not shown.

Before

Width:  |  Height:  |  Size: 13 KiB

After

Width:  |  Height:  |  Size: 13 KiB

View File

Binary file not shown.

Before

Width:  |  Height:  |  Size: 14 KiB

After

Width:  |  Height:  |  Size: 14 KiB

View File

Binary file not shown.

Before

Width:  |  Height:  |  Size: 16 KiB

After

Width:  |  Height:  |  Size: 16 KiB

View File

Binary file not shown.

Before

Width:  |  Height:  |  Size: 12 KiB

After

Width:  |  Height:  |  Size: 12 KiB

View File

Binary file not shown.

Before

Width:  |  Height:  |  Size: 14 KiB

After

Width:  |  Height:  |  Size: 14 KiB

View File

Binary file not shown.

Before

Width:  |  Height:  |  Size: 16 KiB

After

Width:  |  Height:  |  Size: 16 KiB

View File

Binary file not shown.

Before

Width:  |  Height:  |  Size: 12 KiB

After

Width:  |  Height:  |  Size: 12 KiB