Skip to content

Commit 06e5795

Browse files
committed
update
1 parent cbe995c commit 06e5795

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/main/java/io/github/tahanima/page/product/ProductsPage.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
* @author tahanima
1111
*/
1212
public class ProductsPage extends BasePage {
13-
public Locator getTitleLocator() {
13+
public Locator getTitle() {
1414
return page.locator(".title");
1515
}
1616
}

src/test/java/io/github/tahanima/e2e/login/LoginE2ETest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ public void testCorrectUserNameAndCorrectPassword(LoginTestData loginDto) {
6969

7070
ProductsPage productsPage = createInstance(ProductsPage.class);
7171

72-
assertThat(productsPage.getTitleLocator()).hasText("Products");
72+
assertThat(productsPage.getTitle()).hasText("Products");
7373
}
7474

7575
@Test(

0 commit comments

Comments
 (0)