diff --git a/core/src/components/accordion/test/standalone/e2e.ts b/core/src/components/accordion/test/standalone/e2e.ts index cfb1c05054..9188a39915 100644 --- a/core/src/components/accordion/test/standalone/e2e.ts +++ b/core/src/components/accordion/test/standalone/e2e.ts @@ -9,3 +9,12 @@ test('accordion: axe', async () => { const results = await new AxePuppeteer(page).analyze(); expect(results.violations.length).toEqual(0); }); + +test('accordion: standalone', async () => { + const page = await newE2EPage({ + url: '/src/components/accordion/test/standalone?ionic:_testing=true' + }); + + const compare = await page.compareScreenshot(); + expect(compare).toMatchScreenshot(); +}); diff --git a/core/src/components/accordion/test/standalone/index.html b/core/src/components/accordion/test/standalone/index.html index de0b840e60..80014cdd62 100644 --- a/core/src/components/accordion/test/standalone/index.html +++ b/core/src/components/accordion/test/standalone/index.html @@ -85,6 +85,21 @@ + +
+

Item In Content

+ + + + + Accordion + +
+ Some Item +
+
+
+
diff --git a/core/src/css/core.scss b/core/src/css/core.scss index c2e0ea4868..2065bc82b7 100644 --- a/core/src/css/core.scss +++ b/core/src/css/core.scss @@ -282,7 +282,7 @@ ion-accordion-group.accordion-group-expand-inset > ion-accordion:last-of-type { border-bottom-left-radius: 8px; border-bottom-right-radius: 8px; } -ion-accordion-group > ion-accordion:last-of-type ion-item { +ion-accordion-group > ion-accordion:last-of-type ion-item[slot="header"] { --border-width: 0px; }