updates test cases
This commit is contained in:
parent
6fb1180372
commit
0ede2b9d1d
1 changed files with 18 additions and 2 deletions
|
@ -23,12 +23,28 @@ describe("Delete multiple Containers", function () {
|
||||||
beforeEach(async function () {
|
beforeEach(async function () {
|
||||||
await this.webExt.popup.helper.clickElementById("edit-containers-link");
|
await this.webExt.popup.helper.clickElementById("edit-containers-link");
|
||||||
await this.webExt.popup.helper.clickElementByQuerySelectorAll(".edit-container-icon", "last");
|
await this.webExt.popup.helper.clickElementByQuerySelectorAll(".edit-container-icon", "last");
|
||||||
await this.webExt.popup.helper.clickElementById("delete-link", "last");
|
await this.webExt.popup.helper.clickElementById("delete-link");
|
||||||
await this.webExt.popup.helper.clickElementById("delete-container-ok-link");
|
await this.webExt.popup.helper.clickElementById("delete-container-ok-link");
|
||||||
});
|
});
|
||||||
|
|
||||||
it("should remove it in the browser as well", function () {
|
it("should remove it in the browser as well", function () {
|
||||||
this.webExt.background.browser.contextualIdentities.remove.should.have.been.calledOnce;
|
this.webExt.background.browser.contextualIdentities.remove.should.have.been.calledWith("firefox-container-5");
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
|
describe("manually click select multiple contaienr and delete by delete button", function () {
|
||||||
|
beforeEach(async function () {
|
||||||
|
await this.webExt.popup.helper.clickElementById("container-add-link");
|
||||||
|
await this.webExt.popup.helper.clickElementById("edit-container-ok-link");
|
||||||
|
|
||||||
|
await this.webExt.popup.helper.clickElementById("edit-containers-link");
|
||||||
|
// TODO: select multi containers here
|
||||||
|
await this.webExt.popup.helper.clickElementById("delete-link");
|
||||||
|
await this.webExt.popup.helper.clickElementById("delete-container-ok-link");
|
||||||
|
});
|
||||||
|
|
||||||
|
it("should remove it in the browser as well", function () {
|
||||||
|
this.webExt.background.browser.contextualIdentities.remove.should.have.been.calledWith("firefox-container-6");
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
Loading…
Add table
Reference in a new issue