Commit 687d667a authored by Shanelle Valencia's avatar Shanelle Valencia

Test commit

parent bca8f89b
...@@ -58,18 +58,14 @@ public class AccountSettingsPF { ...@@ -58,18 +58,14 @@ public class AccountSettingsPF {
Boolean isDisplayed = userGreeting.isDisplayed(); Boolean isDisplayed = userGreeting.isDisplayed();
System.out.println("User greeting: " + isDisplayed); System.out.println("User greeting: " + isDisplayed);
// navigateAcctDropdown();
// wdw.until(ExpectedConditions.visibilityOf(acc.userGreeting));
// Assert.assertEquals(userGreeting.getText(), "Hi Nisum");
} }
public void navigateAcctSettings() { public void navigateAcctSettings() {
acctSettings.click(); acctSettings.click();
} }
public void navigateAcctInfo() { // public void navigateAcctInfo() {
navigateAcctDropdown(); // navigateAcctDropdown();
navigateAcctSettings(); // navigateAcctSettings();
} // }
} }
...@@ -28,7 +28,6 @@ public class HomePage { ...@@ -28,7 +28,6 @@ public class HomePage {
} }
public void navigateHomePage(String url) { public void navigateHomePage(String url) {
// System.setProperty("webdriver.chrome.driver", "/Users/svalencia/Desktop/webdriver/chromedriver");
driver.get(url); driver.get(url);
} }
......
username="vkrijegccvsknuvnpv@miucce.com"
password="12345678"
\ No newline at end of file
...@@ -42,7 +42,6 @@ public class TestPomAndPF { ...@@ -42,7 +42,6 @@ public class TestPomAndPF {
} }
@Test @Test
public void navigateSafeway() { public void navigateSafeway() {
homePage.navigateHomePage(safewayUrl); homePage.navigateHomePage(safewayUrl);
...@@ -50,20 +49,14 @@ public class TestPomAndPF { ...@@ -50,20 +49,14 @@ public class TestPomAndPF {
} }
@Test @Test
public void testLogIn() { public void testLogIn() {
navigateSafeway(); navigateSafeway();
login.login(email, password); login.login(email, password);
acc.navigateAcctDropdown();
wdw.until(ExpectedConditions.visibilityOf(acc.userGreeting));
// acc.navigateAcctDropdown(); Assert.assertEquals(acc.userGreeting.getText(), "Hi " + firstName);
// wdw.until(ExpectedConditions.visibilityOf(acc.userGreeting)); acc.navigateAcctSettings();
// Assert.assertEquals(acc.userGreeting.getText(), "Hi " + firstName);
acc.navigateAcctInfo();
wdw.until(ExpectedConditions.elementToBeClickable(acc.firstName)); wdw.until(ExpectedConditions.elementToBeClickable(acc.firstName));
Assertions.assertAll("All information must match", Assertions.assertAll("All information must match",
...@@ -77,7 +70,6 @@ public class TestPomAndPF { ...@@ -77,7 +70,6 @@ public class TestPomAndPF {
@AfterAll @AfterAll
public static void tearDown() { public static void tearDown() {
driver.quit(); driver.quit();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment