From bef6a08654f7d1e55578e3579c77661808092a1e Mon Sep 17 00:00:00 2001 From: Aleksandr_Vorobev Date: Fri, 21 Jun 2024 18:34:54 +0300 Subject: [PATCH] - refactoring: Snackbar element - Update test site: Snackbar element --- .../epam/angular/tests/elements/complex/SnackbarTests.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/jdi-light-angular-tests/src/test/java/io/github/epam/angular/tests/elements/complex/SnackbarTests.java b/jdi-light-angular-tests/src/test/java/io/github/epam/angular/tests/elements/complex/SnackbarTests.java index e49c0a1467..6c3db446f7 100644 --- a/jdi-light-angular-tests/src/test/java/io/github/epam/angular/tests/elements/complex/SnackbarTests.java +++ b/jdi-light-angular-tests/src/test/java/io/github/epam/angular/tests/elements/complex/SnackbarTests.java @@ -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")