fixed mocha tests
This commit is contained in:
@@ -11,8 +11,9 @@ describe("Containers Management", function () {
|
||||
|
||||
describe("creating a new container", 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("manage-containers-link");
|
||||
await this.webExt.popup.helper.clickElementById("new-container");
|
||||
await this.webExt.popup.helper.clickElementById("create-container-ok-link");
|
||||
});
|
||||
|
||||
it("should create it in the browser as well", function () {
|
||||
@@ -21,8 +22,9 @@ describe("Containers Management", function () {
|
||||
|
||||
describe("removing it afterwards", function () {
|
||||
beforeEach(async function () {
|
||||
await this.webExt.popup.helper.clickElementById("edit-containers-link");
|
||||
await this.webExt.popup.helper.clickElementByQuerySelectorAll(".delete-container-icon", "last");
|
||||
await this.webExt.popup.helper.clickElementById("manage-containers-link");
|
||||
await this.webExt.popup.helper.clickElementByQuerySelectorAll("#picker-identities-list > .menu-item", "last");
|
||||
await this.webExt.popup.helper.clickElementById("delete-container-button");
|
||||
await this.webExt.popup.helper.clickElementById("delete-container-ok-link");
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user