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 committed Feb 22, 2024
1 parent a572fa9 commit 7d6ce4c
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 7d6ce4c

Please sign in to comment.