Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Logout Function #33

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.
7 changes: 3 additions & 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,12 @@ public Logout() {
this.pageActions = new AysPageActions();
}

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

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

burada kod formatlama yapabiliriz fazla boşlukları silelim.



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

Expand Down
Loading