Skip to content

Commit

Permalink
- refactoring: Snackbar element
Browse files Browse the repository at this point in the history
- Update test site: Snackbar element
  • Loading branch information
Aleksandr_Vorobev committed Jun 21, 2024
1 parent f8883aa commit bef6a08
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -93,14 +93,15 @@ public void snackbarDurationTest() {
}

@Test(dataProvider = "positionProvider")
public void snackbarPositionTest(String horizontal,Position horizontalPosition, String vertical, Position verticalPosition) {
public void snackbarPositionTest(String horizontal, String vertical, Position position) {
horizontalPositionDropdown.select(horizontal);
verticalPositionDropdown.select(vertical);
showPositionSnackbarButton.click();
snackbar.has()
.shown()
.and().has().position(verticalPosition)
.and().has().position(horizontalPosition);
.and()
.has()
.position(position);
}

@DataProvider(name = "positionProvider")
Expand Down

0 comments on commit bef6a08

Please sign in to comment.