Skip to content

Commit

Permalink
991121 bug fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
alireza-ab committed Feb 9, 2021
1 parent 01beea2 commit 6e2dbb0
Show file tree
Hide file tree
Showing 19 changed files with 34,599 additions and 10,579 deletions.
27 changes: 13 additions & 14 deletions cypress/integration/props.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -153,21 +153,13 @@ describe('localeConfig prop', () => {
it('change default properties', () => {
cy.changeProps('locale-config', {
fa: {
inputFormat: {
date: "jMM/jDD",
datetime: "jYYYY/jMM",
time: "jYYYY/jMM",
},
inputFormat: 'jMM/jDD',
translations: {
label: "فارسی",
},
},
en: {
inputFormat: {
date: "YYYY",
datetime: "YYYY",
time: "YYYY",
},
inputFormat: 'YYYY',
translations: {
label: "انگلیسی",
},
Expand Down Expand Up @@ -453,12 +445,12 @@ describe('input class attribute', () => {
describe('column prop', () => {
let type = 'date'
for (let i = 0; i < 2; i++) {
for (let i = 1; i <= 3; i++) {
it('number value in ' + type + ' type => ' + i, () => {
cy.changeProps('column', i)
for (let j = 1; j <= 3; j++) {
it('number value in ' + type + ' type => ' + j, () => {
cy.changeProps('column', j)
cy.visit('/')
cy.get('.pdp-input').focus()
cy.get('.pdp-column').should('have.length', i)
cy.get('.pdp-column').should('have.length', j)
})
}
if (i == 1)
Expand Down Expand Up @@ -856,4 +848,11 @@ describe('attributes', () => {
cy.visit('/')
cy.get('.pdp-group').should('have.attr', 'id')
})

it('id for picker', () => {
cy.changeProps('picker-id', 'picker')
cy.visit('/')
cy.get('.pdp-icon').click()
cy.get('.pdp-picker').should('have.attr', 'id')
})
})
4 changes: 2 additions & 2 deletions cypress/integration/slots.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ describe('slots', () => {
cy.get('.pdp-input').focus().get('.pdp-footer').should('contain.text', 'تاریخ انتخابی:')
})

it('close', () => {
cy.changeSlots('close', 'بستن')
it('clear', () => {
cy.changeSlots('clear', 'بستن')
cy.changeProps('clearable', true)
cy.visit('/')
cy.get('.pdp-clear').should('contain.text', 'بستن')
Expand Down
3 changes: 3 additions & 0 deletions dist/build.js

Large diffs are not rendered by default.

Loading

0 comments on commit 6e2dbb0

Please sign in to comment.