fixed mocha tests
This commit is contained in:
@@ -5,11 +5,12 @@ describe("External Webextensions", function () {
|
||||
|
||||
beforeEach(async function () {
|
||||
this.webExt = await initializeWithTab({
|
||||
cookieStoreId: "firefox-container-1",
|
||||
cookieStoreId: "firefox-container-4",
|
||||
url
|
||||
});
|
||||
|
||||
await this.webExt.popup.helper.clickElementById("container-page-assigned");
|
||||
await this.webExt.popup.helper.clickElementById("always-open-in");
|
||||
await this.webExt.popup.helper.clickElementByQuerySelectorAll("#picker-identities-list > .menu-item", "last");
|
||||
});
|
||||
|
||||
afterEach(function () {
|
||||
@@ -32,7 +33,7 @@ describe("External Webextensions", function () {
|
||||
|
||||
const [promise] = this.webExt.background.browser.runtime.onMessageExternal.addListener.yield(message, sender);
|
||||
const answer = await promise;
|
||||
expect(answer.userContextId === "1").to.be.true;
|
||||
expect(answer.userContextId === "4").to.be.true;
|
||||
expect(answer.neverAsk === false).to.be.true;
|
||||
expect(
|
||||
Object.prototype.hasOwnProperty.call(
|
||||
|
||||
Reference in New Issue
Block a user