summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdriel Santiago <adriel@gitlab.com>2018-08-24 16:15:28 -0400
committerAdriel Santiago <adriel@gitlab.com>2018-08-24 16:15:28 -0400
commit95556c16899a37ab4505e0b3e09d9ade0128ab08 (patch)
tree58b7c41edfb07ad635768b274230ef897240d443
parent452fd703f322370e6bf12a4f243e258db7e278f5 (diff)
downloadgitlab-ce-95556c16899a37ab4505e0b3e09d9ade0128ab08.tar.gz
correct transtition style test to allow chrome v68 compatibility
-rw-r--r--spec/javascripts/flash_spec.js7
1 files changed, 5 insertions, 2 deletions
diff --git a/spec/javascripts/flash_spec.js b/spec/javascripts/flash_spec.js
index 7198dbd4cf2..0a8e5a628c0 100644
--- a/spec/javascripts/flash_spec.js
+++ b/spec/javascripts/flash_spec.js
@@ -57,8 +57,11 @@ describe('Flash', () => {
hideFlash(el);
expect(
- el.style.transition,
- ).toBe('opacity 0.3s');
+ el.style['transition-property'],
+ ).toBe('opacity');
+ expect(
+ el.style['transition-duration'],
+ ).toBe('0.3s');
});
it('sets opacity style', () => {