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")