Skip to content

Commit

Permalink
fix: failing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
alaa-yahia committed Sep 25, 2024
1 parent bb11174 commit 476936e
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions components/calendar/src/__e2e__/calendar-input.e2e.stories.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
import React from 'react'
import { CalendarInput as component } from '../index.js'
import { CalendarWithClearButton } from '../stories/calendar-input.prod.stories.js'
export default { title: 'CalendarInputTesting', component }

export {
EthiopicWithAmharic,
EthiopicWithEnglish,
NepaliWithEnglish,
NepaliWithNepali,
GregorianWithArabic,
GregorianWithEnglish,
IslamicWithArabic,
} from '../stories/calendar-input.prod.stories.js'

export const TestCalendarWithClearButton = () => {
const params = new URLSearchParams(location.search)
const calendar = params.get('calendar') ?? 'gregory'
const initialDate = params.get('initialDate') ?? null

return <CalendarWithClearButton calendar={calendar} date={initialDate} />
}

0 comments on commit 476936e

Please sign in to comment.