mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-16 10:01:59 +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');
|
||||
await picker.waitForVisible();
|
||||
await page.waitFor(250);
|
||||
|
||||
compare = await page.compareScreenshot('should open basic picker');
|
||||
expect(compare).toMatchScreenshot();
|
||||
|
@ -116,7 +116,10 @@ export class PickerColumnCmp implements ComponentInterface {
|
||||
translateY = 0;
|
||||
translateZ = 90;
|
||||
transform = `rotateX(${rotateX}deg) `;
|
||||
} else {
|
||||
translateY = -9999;
|
||||
}
|
||||
|
||||
} else {
|
||||
translateZ = 0;
|
||||
translateY = optOffset;
|
||||
|
@ -13,6 +13,7 @@ it('select: basic', async () => {
|
||||
|
||||
const alert = await page.find('ion-alert');
|
||||
await alert.waitForVisible();
|
||||
await page.waitFor(100);
|
||||
|
||||
compare = await page.compareScreenshot('should open gender single select');
|
||||
expect(compare).toMatchScreenshot();
|
||||
@ -21,6 +22,7 @@ it('select: basic', async () => {
|
||||
|
||||
select = await page.find('#customSelect');
|
||||
await select.click();
|
||||
await page.waitFor(100);
|
||||
|
||||
const actionSheet = await page.find('ion-action-sheet');
|
||||
await actionSheet.waitForVisible();
|
||||
|
Reference in New Issue
Block a user