don't use private fields
This commit is contained in:
parent
f6357ccc7c
commit
dbd544be37
2 changed files with 8 additions and 2 deletions
|
@ -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.
|
||||||
|
|
|
@ -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;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue