Skip to content

Commit

Permalink
Fix total year number tests
Browse files Browse the repository at this point in the history
  • Loading branch information
dmtrKovalenko committed Jun 2, 2020
1 parent 4f68f68 commit b975e7d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions lib/src/__tests__/DatePickerRoot.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ describe('e2e - DatePicker', () => {
it('Should render year selection', () => {
component.find('button[data-mui-test="calendar-view-switcher"]').simulate('click');

expect(component.find('[data-mui-test="year"]').length).toBe(201);
expect(component.find('[data-mui-test="year"]').length).toBe(200);

component
.find('[data-mui-test="year"]')
Expand Down Expand Up @@ -74,7 +74,7 @@ describe('e2e -- DatePicker views year', () => {
});

it('Should render year selection and select year', () => {
expect(component.find('[data-mui-test="year"]').length).toBe(201);
expect(component.find('[data-mui-test="year"]').length).toBe(200);

component
.find('[data-mui-test="year"]')
Expand Down Expand Up @@ -121,7 +121,7 @@ describe('e2e -- DatePicker views year and month', () => {
component.find('button[data-mui-test="calendar-view-switcher"]').simulate('click');

const year = component.find('[data-mui-test="year"]');
expect(component.find('[data-mui-test="year"]').length).toBe(201);
expect(component.find('[data-mui-test="year"]').length).toBe(200);

year.first().simulate('click');
expect(component.find('Month').length).toBe(12);
Expand All @@ -147,6 +147,6 @@ describe('e2e -- DatePicker views year and month open from year', () => {
});

it('Should render year selection', () => {
expect(component.find('[data-mui-test="year"]').length).toBe(201);
expect(component.find('[data-mui-test="year"]').length).toBe(200);
});
});
2 changes: 1 addition & 1 deletion lib/src/__tests__/DateTimePickerRoot.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ describe('e2e - DateTimePicker', () => {
.first()
.simulate('click');

expect(component.find('[data-mui-test="year"]').length).toBe(201);
expect(component.find('[data-mui-test="year"]').length).toBe(200);
component
.find('[data-mui-test="year"]')
.at(1)
Expand Down

0 comments on commit b975e7d

Please sign in to comment.