From abe6acf5989ce0878380f293abe798b1a5f903bd Mon Sep 17 00:00:00 2001 From: Martin Staffa Date: Tue, 10 Apr 2018 23:04:31 +0200 Subject: [PATCH] test(input): fix date type tests with max + timezone Closes #16526 --- test/ng/directive/inputSpec.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/test/ng/directive/inputSpec.js b/test/ng/directive/inputSpec.js index e112f8326641..85f6b7a89f03 100644 --- a/test/ng/directive/inputSpec.js +++ b/test/ng/directive/inputSpec.js @@ -853,6 +853,9 @@ describe('input', function() { }); it('should validate when timezone is provided.', function() { + // We cannot use the default element + dealoc(inputElm); + inputElm = helper.compileInput(''); $rootScope.maxVal = '2013-01'; @@ -1127,6 +1130,9 @@ describe('input', function() { }); it('should validate when timezone is provided.', function() { + // We cannot use the default element + dealoc(inputElm); + inputElm = helper.compileInput(''); // The calendar week comparison date is January 17. Setting the timezone to -2400 @@ -1434,6 +1440,9 @@ describe('input', function() { }); it('should validate when timezone is provided.', function() { + // We cannot use the default element + dealoc(inputElm); + inputElm = helper.compileInput(''); $rootScope.maxVal = '2013-01-01T00:00:00'; @@ -1788,6 +1797,9 @@ describe('input', function() { }); it('should validate when timezone is provided.', function() { + // We cannot use the default element + dealoc(inputElm); + inputElm = helper.compileInput(''); $rootScope.maxVal = '22:30:00';