Skip to content

Commit

Permalink
test(ui/QDate): add years-in-month-view prop test
Browse files Browse the repository at this point in the history
  • Loading branch information
n05la3 authored and IlCallo committed Feb 23, 2024
1 parent 9a1702d commit 02d9a8a
Showing 1 changed file with 21 additions and 2 deletions.
23 changes: 21 additions & 2 deletions ui/src/components/date/__tests__/QDate.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,27 @@ describe('Date API', () => {
describe('Props', () => {
describe('Category: behavior', () => {
describe('(prop): years-in-month-view', () => {
it.skip(' ', () => {
//
it('should show the years selector in months view', () => {
const model = ref('2018/06/03')

mountQDate({
props: {
...vModelAdapter(model),
defaultView: 'Months',
yearsInMonthView: true
}
})

cy.get('.q-date__months .bg-primary')
.should('contain', 'Jun')
cy.get('.q-date__months')
.should('contain', '2018')
.then(async () => {
await Cypress.vueWrapper.setProps({ yearsInMonthView: false })
})

cy.get('.q-date__months')
.should('not.contain', '2018')
})
})
})
Expand Down

0 comments on commit 02d9a8a

Please sign in to comment.