don't use private fields

This commit is contained in:
Erik Jan de Wit 2021-05-06 11:06:20 +02:00
parent f6357ccc7c
commit dbd544be37
2 changed files with 8 additions and 2 deletions

View file

@ -58,8 +58,7 @@ describe("Masthead tests with kebab menu", () => {
}); });
it("shows kabab and hides regular menu", () => { it("shows kabab and hides regular menu", () => {
cy.get(masthead.userDrpDwn).should("not.exist"); masthead.checkKebabShown();
cy.get(masthead.userDrpDwnKebab).should("exist");
}); });
// TODO: Add test for help when using kebab menu. // TODO: Add test for help when using kebab menu.

View file

@ -55,4 +55,11 @@ export default class Masthead {
return this; return this;
} }
checkKebabShown() {
cy.get(this.userDrpDwn).should("not.exist");
cy.get(this.userDrpDwnKebab).should("exist");
return this;
}
} }