Skip to content

Commit

Permalink
AYS-187| Logout Function refactored (#34)
Browse files Browse the repository at this point in the history
  • Loading branch information
yvzcnr authored Mar 14, 2024
1 parent 159343b commit b652e4d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
1 change: 0 additions & 1 deletion src/test/java/org/ays/feature/Logout.feature
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ Feature: Testing Logout
And Click the Login button

Scenario: Validating logout functionality
Given Click on the admins button
When Click on the profile button
And Click on the logout button
Then the admin user should land on the Login page after logging out.
5 changes: 1 addition & 4 deletions src/test/java/org/ays/step_definitions/Logout.java
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,10 @@ public Logout() {
this.pageActions = new AysPageActions();
}

@Given("Click on the admins button")
public void clickOnTheAdminsButton() {
pageActions.clickMethod(logoutPOM.getAdminsButton());
}

@When("Click on the profile button")
public void clickOnTheProfileButton() {
pageActions.waitUntilVisible(logoutPOM.getProfileButton());
pageActions.hoverOver(logoutPOM.getProfileButton());
}

Expand Down

0 comments on commit b652e4d

Please sign in to comment.