test: use id instead of text in test
This commit is contained in:
parent
051660dff9
commit
1a1aa4170a
1 changed files with 1 additions and 4 deletions
|
|
@ -11,10 +11,7 @@ context("Awesome Bar", () => {
|
|||
|
||||
beforeEach(() => {
|
||||
cy.get("body").click(0, 0); // Click on some blank space to avoid any modals.
|
||||
let txt = `Search or type a command (${
|
||||
window.navigator.platform === "MacIntel" ? "⌘" : "Ctrl"
|
||||
} + K)`;
|
||||
cy.contains(txt).as("awesome_bar_search");
|
||||
cy.get("#navbar-modal-search").as("awesome_bar_search");
|
||||
cy.get("@awesome_bar_search").click();
|
||||
cy.get("#navbar-search").as("awesome_bar");
|
||||
cy.get("#navbar-search").type("{selectall}");
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue