diff --git a/packages/core/src/components/date/date.tsx b/packages/core/src/components/date/date.tsx index 6bc655097..2c41c73bc 100644 --- a/packages/core/src/components/date/date.tsx +++ b/packages/core/src/components/date/date.tsx @@ -562,7 +562,14 @@ export class DsDate implements DsComponentInterface, FieldInterface, FormControl language={this.language} inputId="input" > - {this.inline &&
(this.popupHostEl = el as HTMLDivElement)}>
} + {this.inline && ( +
(this.popupHostEl = el as HTMLDivElement)} + >
+ )} {!this.inline && ( <> { await a11y('ds-date') }) +test('inline', async ({ page, a11y }) => { + await page.mount(``) + await page.locator('.air-datepicker-cell.-day-:not(.-other-month-)').first().waitFor({ state: 'visible' }) + await a11y('ds-date') +}) + test('with picker open', async ({ page, a11y }) => { await page.mount(``) const date = new DsDate(page.locator('ds-date'))