Просмотр исходного кода

fixes to tests for fc-header in popover

Adam Shaw 9 лет назад
Родитель
Сommit
a19cb480d7
2 измененных файлов с 5 добавлено и 5 удалено
  1. 3 3
      tests/automated/dayPopoverFormat.js
  2. 2 2
      tests/automated/eventLimit-popover.js

+ 3 - 3
tests/automated/dayPopoverFormat.js

@@ -25,19 +25,19 @@ describe('dayPopoverFormat', function() {
 	it('can be set to a custom value', function() {
 		options.dayPopoverFormat = 'ddd, MMMM';
 		init();
-		expect($('.fc-more-popover > .fc-header-toolbar .fc-title')).toHaveText('Tue, July');
+		expect($('.fc-more-popover > .fc-header .fc-title')).toHaveText('Tue, July');
 	});
 
 	it('is affected by the current locale when the value is default', function() {
 		options.locale = 'fr';
 		init();
-		expect($('.fc-more-popover > .fc-header-toolbar .fc-title')).toHaveText('29 juillet 2014');
+		expect($('.fc-more-popover > .fc-header .fc-title')).toHaveText('29 juillet 2014');
 	});
 
 	it('still maintains the same format when explicitly set, and there is a locale', function() {
 		options.locale = 'fr';
 		options.dayPopoverFormat = 'YYYY';
 		init();
-		expect($('.fc-more-popover > .fc-header-toolbar .fc-title')).toHaveText('2014');
+		expect($('.fc-more-popover > .fc-header .fc-title')).toHaveText('2014');
 	});
 });

+ 2 - 2
tests/automated/eventLimit-popover.js

@@ -189,8 +189,8 @@ describe('eventLimit popover', function() {
 	it('doesn\'t close when user clicks somewhere inside of the popover', function() {
 		init();
 		expect($('.fc-more-popover')).toBeVisible();
-		expect($('.fc-more-popover .fc-header-toolbar')).toBeInDOM();
-		$('.fc-more-popover .fc-header-toolbar').simulate('mousedown').simulate('click');
+		expect($('.fc-more-popover .fc-header')).toBeInDOM();
+		$('.fc-more-popover .fc-header').simulate('mousedown').simulate('click');
 		expect($('.fc-more-popover')).toBeVisible();
 	});