From bed3032245fdf88c9aa21a30e539a644f596b2c3 Mon Sep 17 00:00:00 2001 From: Aleksandr_Vorobev Date: Thu, 13 Jun 2024 14:49:08 +0300 Subject: [PATCH] - refactoring: Snackbar element - Update test site: Snackbar element --- .../tests/elements/complex/SnackbarTests.java | 12 ++++-------- .../jdi/light/angular/elements/enums/Position.java | 4 ---- 2 files changed, 4 insertions(+), 12 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 219b156277..5e1f83bbe9 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 @@ -8,14 +8,10 @@ import static com.epam.jdi.light.angular.elements.enums.Position.CENTER_BOTTOM; import static com.epam.jdi.light.angular.elements.enums.Position.CENTER_TOP; -import static com.epam.jdi.light.angular.elements.enums.Position.END_BOTTOM; -import static com.epam.jdi.light.angular.elements.enums.Position.END_TOP; import static com.epam.jdi.light.angular.elements.enums.Position.LEFT_BOTTOM; import static com.epam.jdi.light.angular.elements.enums.Position.LEFT_TOP; import static com.epam.jdi.light.angular.elements.enums.Position.RIGHT_BOTTOM; import static com.epam.jdi.light.angular.elements.enums.Position.RIGHT_TOP; -import static com.epam.jdi.light.angular.elements.enums.Position.START_BOTTOM; -import static com.epam.jdi.light.angular.elements.enums.Position.START_TOP; import static com.epam.jdi.light.elements.base.Conditions.hidden; import static com.epam.jdi.light.elements.base.Conditions.visible; import static com.jdiai.tools.Timer.waitCondition; @@ -111,15 +107,15 @@ public void snackbarPositionTest(String horizontal, String vertical, Position po @DataProvider(name = "positionProvider") public Object[][] providePositions() { return new Object[][]{ - {"Start", "Top", START_TOP}, + {"Start", "Top", LEFT_TOP}, {"Center", "Top", CENTER_TOP}, - {"End", "Top", END_TOP}, + {"End", "Top", RIGHT_TOP}, {"Left", "Top", LEFT_TOP}, {"Right", "Top", RIGHT_TOP}, - {"Start", "Bottom", START_BOTTOM}, + {"Start", "Bottom", LEFT_BOTTOM}, {"Center", "Bottom", CENTER_BOTTOM}, - {"End", "Bottom", END_BOTTOM}, + {"End", "Bottom", RIGHT_BOTTOM}, {"Left", "Bottom", LEFT_BOTTOM}, {"Right", "Bottom", RIGHT_BOTTOM}}; } diff --git a/jdi-light-angular/src/main/java/com/epam/jdi/light/angular/elements/enums/Position.java b/jdi-light-angular/src/main/java/com/epam/jdi/light/angular/elements/enums/Position.java index a7666b1ef6..3e519398b5 100644 --- a/jdi-light-angular/src/main/java/com/epam/jdi/light/angular/elements/enums/Position.java +++ b/jdi-light-angular/src/main/java/com/epam/jdi/light/angular/elements/enums/Position.java @@ -22,15 +22,11 @@ public enum Position { LEFT("justify-content: flex-start"), RIGHT("justify-content: flex-end"), - START_BOTTOM("justify-content: flex-start; align-items: flex-end;"), CENTER_BOTTOM("justify-content: center; align-items: flex-end;"), - END_BOTTOM("justify-content: flex-end; align-items: flex-end;"), LEFT_BOTTOM("justify-content: flex-start; align-items: flex-end;"), RIGHT_BOTTOM("justify-content: flex-end; align-items: flex-end;"), - START_TOP("justify-content: flex-start; align-items: flex-start;"), CENTER_TOP("justify-content: center; align-items: flex-start;"), - END_TOP("justify-content: flex-end; align-items: flex-start;"), LEFT_TOP("justify-content: flex-start; align-items: flex-start;"), RIGHT_TOP("justify-content: flex-end; align-items: flex-start;");