Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
Swright88 committed Jun 27, 2023
1 parent 0fbe547 commit 7b90387
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/test/java/SignUpTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,7 @@ public void setup() {
driver = new ChromeDriver();
faker = new Faker();
}

@After
public void tearDown() {
driver.close();
}

@Test
@Test
public void successfulSignUpRedirectsToSignIn() {
driver.get("http://localhost:8080/users/new");
driver.findElement(By.id("username")).sendKeys(faker.name().firstName());
Expand All @@ -40,4 +34,10 @@ public void successfulSignUpRedirectsToSignIn() {
String title = driver.getTitle();
Assert.assertEquals("Please sign in", title);
}
@After
public void tearDown() {
driver.close();
}


}

0 comments on commit 7b90387

Please sign in to comment.