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

Commit

Permalink
Merge pull request #4954 from chenba/4886-hello
Browse files Browse the repository at this point in the history
Fix #hello onboarding
  • Loading branch information
chenba committed Sep 26, 2018
2 parents bd409f4 + 45f6def commit d1015ea
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 d1015ea

Please sign in to comment.