Skip to content
Snippets Groups Projects
Commit 4ae40006 authored by Paul Kaplan's avatar Paul Kaplan
Browse files

Remove beforeunload callback that was breaking tests

parent c40b8c91
No related branches found
No related tags found
No related merge requests found
......@@ -49,6 +49,9 @@ describe('Localization', () => {
// After switching languages, make sure Apple sprite still exists
await rightClickText('Apple', scope.spriteTile); // Make sure it is there
// Remounting re-attaches the beforeunload callback. Make sure to remove it
driver.executeScript('window.onbeforeunload = undefined;');
const logs = await getLogs();
await expect(logs).toEqual([]);
});
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment