Skip to content

Commit

Permalink
fix: remove tests dependant on calendarDate
Browse files Browse the repository at this point in the history
  • Loading branch information
alaa-yahia committed Sep 26, 2024
1 parent 26a3579 commit 3eedecb
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 22 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,4 @@ Then('we should be able to select a day', () => {
)

cy.get('[data-test="storybook-calendar-result"]').should('have.text', date)
cy.get('[data-test="storybook-calendar-result-iso"]').should(
'have.text',
'13 October 2021'
)
})
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,4 @@ Then('we should be able to select a day', () => {
)

cy.get('[data-test="storybook-calendar-result"]').should('have.text', date)
cy.get('[data-test="storybook-calendar-result-iso"]').should(
'have.text',
'13 October 2021'
)
})
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,4 @@ Then('we should be able to select a day', () => {
'have.text',
nepaliDate
)
cy.get('[data-test="storybook-calendar-result-iso"]').should(
'have.text',
'13 October 2021'
)
})
10 changes: 0 additions & 10 deletions components/calendar/src/stories/calendar-story-wrapper.js
Original file line number Diff line number Diff line change
Expand Up @@ -137,16 +137,6 @@ export const CalendarStoryWrapper = (props) => {
{selectedDate.calendarDateString}
</span>
</div>
<div>
<label>iso date: </label>
<span data-test="storybook-calendar-result-iso">
{selectedDate.calendarDate
?.withCalendar('iso8601')
.toLocaleString('en-GB', {
dateStyle: 'long',
})}
</span>
</div>
<div>
<label>callback:</label>
{JSON.stringify(selectedDate, null, 2)}
Expand Down

0 comments on commit 3eedecb

Please sign in to comment.