test(toast): remove the safe area to enable clicks on all buttons

This commit is contained in:
Brandy Carney
2019-04-17 15:06:55 -04:00
parent 9e63947e3c
commit 70db7080b1
2 changed files with 5 additions and 8 deletions

View File

@@ -157,11 +157,6 @@
</script>
<style>
:root {
--ion-safe-area-top: 20px;
--ion-safe-area-bottom: 40px;
}
.my-custom-class {
--border-radius: 20px;
--border-width: 5px;

View File

@@ -16,10 +16,12 @@ export async function testToast(
const screenshotCompares = [];
const button = await page.find(selector);
await button.click();
await page.click(selector);
await page.waitForSelector(selector);
let toast = await page.find('ion-toast');
expect(toast).not.toBe(null);
await toast.waitForVisible();
screenshotCompares.push(await page.compareScreenshot());
@@ -30,7 +32,7 @@ export async function testToast(
screenshotCompares.push(await page.compareScreenshot('dismiss'));
toast = await page.find('ion-toast');
expect(toast).toBeNull();
expect(toast).toBe(null);
for (const screenshotCompare of screenshotCompares) {
expect(screenshotCompare).toMatchScreenshot();