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

Dominique #51

Merged
merged 3 commits into from
Mar 5, 2020
Merged
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
2 changes: 1 addition & 1 deletion src/test/java/com/revature/steps/AdminSteps.java
Original file line number Diff line number Diff line change
Expand Up @@ -119,4 +119,4 @@ public void the_user_is_on_the_Home_Page() throws Throwable {



}
}
14 changes: 8 additions & 6 deletions src/test/java/com/revature/steps/DriverSteps.java
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public class DriverSteps {

@Given("The user is on the homepage")
public void the_user_is_on_the_homepage() {
driver.get("http://rideshare.com.s3-website.us-east-2.amazonaws.com/");
driver.get("http://localhost:4200/");
}

@When("The user clicks on the login button")
Expand All @@ -42,7 +42,7 @@ public void the_user_clicks_log_in() {
//NEEDS A TITLE!!!!!
@Then("The user should be on the Profile page")
public void the_user_should_be_on_the_Profile_page() {
Assert.assertEquals("", driver.getTitle());
Assert.assertEquals("Profile Page - RideShare", driver.getTitle());
}


Expand Down Expand Up @@ -76,14 +76,16 @@ public void the_user_types_in_the_phone_number() {
homepage.contactPhoneInput.sendKeys("500-909-8483");
}

@When("The user types in the username")
@When("The user types in the updated username")
public void the_user_types_in_the_updated_username() {
homepage.contactUserInput.sendKeys("booboo");
// Write code here that turns the phrase above into concrete actions
throw new io.cucumber.java.PendingException();
}

@When("The user types in the password")
@When("The user types in the updated password")
public void the_user_types_in_the_updated_password() {
homepage.contactPassInput.sendKeys("isBestBoi");
// Write code here that turns the phrase above into concrete actions
throw new io.cucumber.java.PendingException();
}

@When("The user types in the address")
Expand Down
1 change: 0 additions & 1 deletion src/test/resources/RideForceAdmin.feature
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,3 @@ When The user clicks on the logout button
Then The user is on the Home Page



4 changes: 2 additions & 2 deletions src/test/resources/RideforceDriver.feature
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ Feature: Driver logs in and uses driver services
When The user types in the last name
When The user types in the email
When The user types in the phone number
When The user types in the username
When The user types in the password
When The user types in the updated username
When The user types in the updated password
When The user types in the address
# When The user types in the street
# When The user types in the city
Expand Down