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 13, 2024
1 parent bd93eba commit bed3032
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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}};
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;");

Expand Down

0 comments on commit bed3032

Please sign in to comment.