diff options
author | winniehell <git@winniehell.de> | 2016-11-23 03:25:11 +0300 |
---|---|---|
committer | winniehell <git@winniehell.de> | 2016-11-23 03:29:32 +0300 |
commit | 4b4fd743c35aad51e42d074336191035e7303cf0 (patch) | |
tree | f5b402ed7a253511cbaa89ced581dfa48f876ed4 /spec/javascripts/zen_mode_spec.js | |
parent | 448c19aab1689ef43658a1f0fa0315e206ae895f (diff) |
Replace static fixture for zen_mode_spec (!7686)
Diffstat (limited to 'spec/javascripts/zen_mode_spec.js')
-rw-r--r-- | spec/javascripts/zen_mode_spec.js | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/spec/javascripts/zen_mode_spec.js b/spec/javascripts/zen_mode_spec.js index a18e8aee9b1..b9acaaa5a0d 100644 --- a/spec/javascripts/zen_mode_spec.js +++ b/spec/javascripts/zen_mode_spec.js @@ -6,9 +6,10 @@ var enterZen, escapeKeydown, exitZen; describe('ZenMode', function() { - fixture.preload('zen_mode.html'); + var fixtureName = 'issues/open-issue.html.raw'; + fixture.preload(fixtureName); beforeEach(function() { - fixture.load('zen_mode.html'); + fixture.load(fixtureName); spyOn(Dropzone, 'forElement').and.callFake(function() { return { enable: function() { @@ -60,11 +61,11 @@ }); enterZen = function() { - return $('a.js-zen-enter').click(); + return $('.js-zen-enter').click(); }; exitZen = function() { // Ohmmmmmmm - return $('a.js-zen-leave').click(); + return $('.js-zen-leave').click(); }; escapeKeydown = function() { |