FIX: Clear `sessionStorage` between click track tests
This commit is contained in:
parent
1d478a97db
commit
a4b658920e
|
@ -8,13 +8,14 @@ var windowOpen,
|
||||||
|
|
||||||
module("lib:click-track", {
|
module("lib:click-track", {
|
||||||
setup: function() {
|
setup: function() {
|
||||||
|
|
||||||
// Prevent any of these tests from navigating away
|
// Prevent any of these tests from navigating away
|
||||||
win = {focus: function() { } };
|
win = {focus: function() { } };
|
||||||
redirectTo = sandbox.stub(DiscourseURL, "redirectTo");
|
redirectTo = sandbox.stub(DiscourseURL, "redirectTo");
|
||||||
windowOpen = sandbox.stub(window, "open").returns(win);
|
windowOpen = sandbox.stub(window, "open").returns(win);
|
||||||
sandbox.stub(win, "focus");
|
sandbox.stub(win, "focus");
|
||||||
|
|
||||||
|
sessionStorage.clear();
|
||||||
|
|
||||||
fixture().html(
|
fixture().html(
|
||||||
`<div id="topic" data-topic-id="1337">
|
`<div id="topic" data-topic-id="1337">
|
||||||
<article data-post-id="42" data-user-id="3141">
|
<article data-post-id="42" data-user-id="3141">
|
||||||
|
|
Loading…
Reference in New Issue