Skip to content

Commit

Permalink
βœ… : add users page navigation test
Browse files Browse the repository at this point in the history
  • Loading branch information
juwit committed Dec 28, 2020
1 parent 6910005 commit d8fe174
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/test/features/io/gaia_app/e2e/basic_navigation.feature
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,7 @@ Feature: Basic Navigation
Scenario: View job details
When I go on the job '5e856dc7-6bed-465f-abf1-02980206ab2a' for stack 'de28a01f-257a-448d-8e1b-00e4e3a41db2' page
Then Percy takes a snapshot named 'Job Details'

Scenario: View users list
When I go on the users page
Then Percy takes a snapshot named 'Users'
16 changes: 16 additions & 0 deletions src/test/java/io/gaia_app/e2e/stepDefs/UsersStepDefs.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
package io.gaia_app.e2e.stepDefs;

import io.cucumber.java.en.When;
import io.gaia_app.e2e.pages.JobPage;
import org.openqa.selenium.support.PageFactory;
import org.openqa.selenium.support.pagefactory.AjaxElementLocatorFactory;

import static org.assertj.core.api.Assertions.assertThat;

public class UsersStepDefs extends StepDefs {

@When("I go on the users page")
public void iGoOnTheUsersPage() {
driver.get(baseUrl()+"/users");
}
}

0 comments on commit d8fe174

Please sign in to comment.