From b975e7d3356807969259c42fd5d176a0f6f87002 Mon Sep 17 00:00:00 2001 From: Dmitriy Kovalenko Date: Tue, 2 Jun 2020 12:11:24 +0300 Subject: [PATCH] Fix total year number tests --- lib/src/__tests__/DatePickerRoot.test.tsx | 8 ++++---- lib/src/__tests__/DateTimePickerRoot.test.tsx | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/src/__tests__/DatePickerRoot.test.tsx b/lib/src/__tests__/DatePickerRoot.test.tsx index 9fee7c899..750719b1a 100644 --- a/lib/src/__tests__/DatePickerRoot.test.tsx +++ b/lib/src/__tests__/DatePickerRoot.test.tsx @@ -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"]') @@ -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"]') @@ -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); @@ -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); }); }); diff --git a/lib/src/__tests__/DateTimePickerRoot.test.tsx b/lib/src/__tests__/DateTimePickerRoot.test.tsx index 072d11380..f2545a8f0 100644 --- a/lib/src/__tests__/DateTimePickerRoot.test.tsx +++ b/lib/src/__tests__/DateTimePickerRoot.test.tsx @@ -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)