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

Quit and restart driver to hit # URL because hashchange behavior changed

Pages no longer reload if you hit the same hash URL twice
parent 07516a9c
Branches
Tags
No related merge requests found
......@@ -66,6 +66,9 @@ describe('Loading scratch gui', () => {
});
test('Load a project by ID directly through url', async () => {
await driver.quit(); // Reset driver to test hitting # url directly
driver = getDriver();
const projectId = '96708228';
await loadUri(`${uri}#${projectId}`);
await clickXpath('//button[@title="tryit"]');
......@@ -78,6 +81,9 @@ describe('Loading scratch gui', () => {
});
test('Load a project by ID (fullscreen)', async () => {
await driver.quit(); // Reset driver to test hitting # url directly
driver = getDriver();
const prevSize = driver.manage()
.window()
.getSize();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment