Skip to content
This repository has been archived by the owner on Jan 17, 2023. It is now read-only.

Commit

Permalink
Fix #hello onboarding. (#4886)
Browse files Browse the repository at this point in the history
  • Loading branch information
chenba committed Sep 25, 2018
1 parent b3d0228 commit 45f6def
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions test/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -362,6 +362,13 @@ describe("Test Screenshots", function() {
}).catch(done);
});

it("should show onboarding with #hello", async function() {
await driver.get(`${backend}/#hello`);
await driver.setContext(firefox.Context.CONTENT);
const slideFrame = await driver.wait(until.elementLocated(By.id(SLIDE_IFRAME_ID)));
assert(slideFrame, "Navigating to #hello should show onboarding");
});

it("should download a shot", function(done) {
const startingFileCount = fs.readdirSync(downloadDir).length;
const filenameRegex = /^Screenshot.+ Firefox Screenshots\.png$/;
Expand Down
2 changes: 1 addition & 1 deletion webextension/background/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ this.main = (function() {
if (!isLoaded) {
sendEvent("start-shot", "site-request", {incognito: tab.incognito});
setIconActive(true, tab.id);
selectorLoader.toggle(tab.id, false);
selectorLoader.toggle(tab.id, Promise.resolve(false));
}
});
}
Expand Down

0 comments on commit 45f6def

Please sign in to comment.