Skip to content

Commit

Permalink
Update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kravets-levko committed Jun 4, 2020
1 parent a45fd13 commit 5078686
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ export default function DesktopNavbar() {
)}
<Menu.Divider />
<Menu.Item key="logout">
<a onClick={() => Auth.logout()}>Log out</a>
<a data-text="LogOutButton" onClick={() => Auth.logout()}>Log out</a>
</Menu.Item>
<Menu.Divider />
<Menu.Item key="version" disabled className="version-info">
Expand Down
2 changes: 1 addition & 1 deletion client/cypress/integration/user/logout_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ describe("Logout", () => {

it("shows login page after logout", () => {
cy.getByTestId("ProfileDropdown").click();
cy.contains("Log out").click();
cy.getByTestId("LogOutButton").click();

cy.title().should("eq", "Login to Redash");
});
Expand Down

0 comments on commit 5078686

Please sign in to comment.