Skip to content

Commit

Permalink
Clean publisher
Browse files Browse the repository at this point in the history
  • Loading branch information
Flaburgan committed Jul 17, 2022
1 parent e3a4422 commit 9b39889
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions spec/javascripts/app/router_spec.js
Expand Up @@ -173,6 +173,12 @@ describe('app.Router', function () {
expect(app.publisher).toBeUndefined();
app.router._initializeStreamView();
expect(app.publisher).toBeDefined();
// Ensure that the publisher is empty at the end of each test to not be stuck by the browser message
// "This page is asking you to confirm that you want to leave - data you have entered may not be saved."
var publisher = document.getElementById("status_message_text");
if (publisher !== null) {
publisher.value = "";
}
});

it("doesn't set app.publisher if already defined", function() {
Expand Down

0 comments on commit 9b39889

Please sign in to comment.