mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
test(toast): remove the safe area to enable clicks on all buttons
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user