test(searchbar): add focused state screenshot (#16261)

This commit is contained in:
Cam Wiegert
2018-11-07 15:43:18 -06:00
committed by GitHub
parent 93ae2c8f66
commit bf96260b6b
2 changed files with 8 additions and 0 deletions

View File

@ -9,4 +9,8 @@ test('searchbar: basic', async () => {
const compare = await page.compareScreenshot();
expect(compare).toMatchScreenshot();
const searchbar = await page.find('ion-searchbar');
await searchbar.callMethod('setFocus');
expect(await page.compareScreenshot('focused')).toMatchScreenshot();
});

View File

@ -9,4 +9,8 @@ test('searchbar: standalone', async () => {
const compare = await page.compareScreenshot();
expect(compare).toMatchScreenshot();
const searchbar = await page.find('ion-searchbar');
await searchbar.callMethod('setFocus');
expect(await page.compareScreenshot('focused')).toMatchScreenshot();
});