chore: sync with main

This commit is contained in:
Liam DeBeasi
2024-01-25 13:13:16 -05:00
parent 74de16f862
commit 0fdd7d137b
2 changed files with 17 additions and 11 deletions

View File

@ -170,31 +170,37 @@ configs({ modes: ['ios'], directions: ['ltr'] }).forEach(({ title, config }) =>
});
await page.setContent(
`
<ion-picker-internal>
<ion-picker-column-internal></ion-picker-column-internal>
</ion-picker-internal>
<ion-picker>
<ion-picker-column></ion-picker-column>
</ion-picker>
<script>
const column = document.querySelector('ion-picker-column-internal');
column.items = [
{ text: '00', value: 12 },
const column = document.querySelector('ion-picker-column');
column.numericInput = true;
const items = [
{ text: '01', value: 1 },
{ text: '02', value: 2 },
{ text: '03', value: 3 },
{ text: '04', value: 4 },
{ text: '05', value: 5 }
];
column.value = 5;
column.numericInput = true;
items.forEach((item) => {
const option = document.createElement('ion-picker-column-option');
option.value = item.value;
option.textContent = item.text;
column.appendChild(option);
});
</script>
`,
config
);
const column = page.locator('ion-picker-column-internal');
const column = page.locator('ion-picker-column');
await column.click();
const input = page.locator('ion-picker-internal input');
const input = page.locator('ion-picker input');
await expect(input).toBeFocused();
// pressing Enter should blur the input and therefore close the keyboard

View File

@ -54,7 +54,7 @@ configs({ directions: ['ltr'], themes: ['light', 'dark'] }).forEach(({ title, co
const results = await new AxeBuilder({ page }).analyze();
expect(results.violations).toEqual([]);
});
test(title('radio: keyboard navigation'), () => {
test.describe(title('radio: keyboard navigation'), () => {
test.beforeEach(async ({ page, browserName }) => {
await page.setContent(
`