mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-17 02:31:34 +08:00
fix(picker): fix iOS picker options that shouldn't be showing (#16055)
This commit is contained in:
@ -13,6 +13,7 @@ it('datetime: standalone', async () => {
|
|||||||
|
|
||||||
const picker = await page.find('ion-picker');
|
const picker = await page.find('ion-picker');
|
||||||
await picker.waitForVisible();
|
await picker.waitForVisible();
|
||||||
|
await page.waitFor(250);
|
||||||
|
|
||||||
compare = await page.compareScreenshot('should open basic picker');
|
compare = await page.compareScreenshot('should open basic picker');
|
||||||
expect(compare).toMatchScreenshot();
|
expect(compare).toMatchScreenshot();
|
||||||
|
@ -116,7 +116,10 @@ export class PickerColumnCmp implements ComponentInterface {
|
|||||||
translateY = 0;
|
translateY = 0;
|
||||||
translateZ = 90;
|
translateZ = 90;
|
||||||
transform = `rotateX(${rotateX}deg) `;
|
transform = `rotateX(${rotateX}deg) `;
|
||||||
|
} else {
|
||||||
|
translateY = -9999;
|
||||||
}
|
}
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
translateZ = 0;
|
translateZ = 0;
|
||||||
translateY = optOffset;
|
translateY = optOffset;
|
||||||
|
@ -13,6 +13,7 @@ it('select: basic', async () => {
|
|||||||
|
|
||||||
const alert = await page.find('ion-alert');
|
const alert = await page.find('ion-alert');
|
||||||
await alert.waitForVisible();
|
await alert.waitForVisible();
|
||||||
|
await page.waitFor(100);
|
||||||
|
|
||||||
compare = await page.compareScreenshot('should open gender single select');
|
compare = await page.compareScreenshot('should open gender single select');
|
||||||
expect(compare).toMatchScreenshot();
|
expect(compare).toMatchScreenshot();
|
||||||
@ -21,6 +22,7 @@ it('select: basic', async () => {
|
|||||||
|
|
||||||
select = await page.find('#customSelect');
|
select = await page.find('#customSelect');
|
||||||
await select.click();
|
await select.click();
|
||||||
|
await page.waitFor(100);
|
||||||
|
|
||||||
const actionSheet = await page.find('ion-action-sheet');
|
const actionSheet = await page.find('ion-action-sheet');
|
||||||
await actionSheet.waitForVisible();
|
await actionSheet.waitForVisible();
|
||||||
|
Reference in New Issue
Block a user