fix(picker): delay option animate until after options initialized (#16037)

This commit is contained in:
Adam Bradley
2018-10-22 20:31:27 -05:00
committed by GitHub
parent e644fc9246
commit a74e5653d5
2 changed files with 31 additions and 19 deletions

View File

@@ -16,4 +16,11 @@ it('datetime: standalone', async () => {
compare = await page.compareScreenshot('should open basic picker');
expect(compare).toMatchScreenshot();
const octoberOpt = await page.find({ text: 'October' });
await octoberOpt.click();
await page.waitFor(500);
compare = await page.compareScreenshot('should click "October" option');
expect(compare).toMatchScreenshot();
});