mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-17 02:31:34 +08:00
test(searchbar): add focused state screenshot (#16261)
This commit is contained in:
@ -9,4 +9,8 @@ test('searchbar: basic', async () => {
|
|||||||
|
|
||||||
const compare = await page.compareScreenshot();
|
const compare = await page.compareScreenshot();
|
||||||
expect(compare).toMatchScreenshot();
|
expect(compare).toMatchScreenshot();
|
||||||
|
|
||||||
|
const searchbar = await page.find('ion-searchbar');
|
||||||
|
await searchbar.callMethod('setFocus');
|
||||||
|
expect(await page.compareScreenshot('focused')).toMatchScreenshot();
|
||||||
});
|
});
|
||||||
|
@ -9,4 +9,8 @@ test('searchbar: standalone', async () => {
|
|||||||
|
|
||||||
const compare = await page.compareScreenshot();
|
const compare = await page.compareScreenshot();
|
||||||
expect(compare).toMatchScreenshot();
|
expect(compare).toMatchScreenshot();
|
||||||
|
|
||||||
|
const searchbar = await page.find('ion-searchbar');
|
||||||
|
await searchbar.callMethod('setFocus');
|
||||||
|
expect(await page.compareScreenshot('focused')).toMatchScreenshot();
|
||||||
});
|
});
|
||||||
|
Reference in New Issue
Block a user