diff --git a/core/src/components/radio-group/test/search/e2e.ts b/core/src/components/radio-group/test/search/e2e.ts new file mode 100644 index 0000000000..66af9b2c91 --- /dev/null +++ b/core/src/components/radio-group/test/search/e2e.ts @@ -0,0 +1,27 @@ +import { newE2EPage } from '@stencil/core/testing'; + +test('radio-group: search', async () => { + const page = await newE2EPage({ + url: '/src/components/radio-group/test/search?ionic:_testing=true' + }); + + const screenshotCompares = []; + screenshotCompares.push(await page.compareScreenshot()); + + const radioTwo = await page.find('ion-radio[value=two]'); + await radioTwo.click(); + + const value = await page.find('#value'); + expect(value.textContent).toEqual('Current value: two'); + + const searchbar = await page.find('ion-searchbar'); + await searchbar.click(); + await page.keyboard.type('zero'); + + const valueAgain = await page.find('#value'); + expect(valueAgain.textContent).toEqual('Current value: two'); + + for (const screenshotCompare of screenshotCompares) { + expect(screenshotCompare).toMatchScreenshot(); + } +}); diff --git a/core/src/components/radio-group/test/search/index.html b/core/src/components/radio-group/test/search/index.html new file mode 100644 index 0000000000..e0b0a85ea6 --- /dev/null +++ b/core/src/components/radio-group/test/search/index.html @@ -0,0 +1,81 @@ + + + +
+ +