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 30dae94 commit a361338
Showing 1 changed file with 17 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,12 @@
import org.testng.annotations.DataProvider;
import org.testng.annotations.Test;

import static com.epam.jdi.light.angular.elements.enums.Position.BOTTOM;
import static com.epam.jdi.light.angular.elements.enums.Position.CENTER;
import static com.epam.jdi.light.angular.elements.enums.Position.LEFT;
import static com.epam.jdi.light.angular.elements.enums.Position.RIGHT;
import static com.epam.jdi.light.angular.elements.enums.Position.TOP;
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.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.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 @@ -105,16 +106,16 @@ public void snackbarPositionTest(String horizontal,Position horizontalPosition,
@DataProvider(name = "positionProvider")
public Object[][] providePositions() {
return new Object[][]{
{"Start",LEFT, "Top", TOP},
{"Center", CENTER, "Top", TOP},
{"End", RIGHT, "Top", TOP},
{"Left",LEFT, "Top", TOP},
{"Right",RIGHT, "Top", TOP},

{"Start",LEFT, "Bottom", BOTTOM},
{"Center", CENTER, "Bottom", BOTTOM},
{"End", RIGHT,"Bottom", BOTTOM},
{"Left",LEFT, "Bottom", BOTTOM},
{"Right",RIGHT, "Bottom", BOTTOM}};
{"Start", "Top", LEFT_TOP},
{"Center", "Top", CENTER_TOP},
{"End", "Top", RIGHT_TOP},
{"Left", "Top", LEFT_TOP},
{"Right", "Top", RIGHT_TOP},

{"Start", "Bottom", LEFT_BOTTOM},
{"Center", "Bottom", CENTER_BOTTOM},
{"End", "Bottom", RIGHT_BOTTOM},
{"Left", "Bottom", LEFT_BOTTOM},
{"Right", "Bottom", RIGHT_BOTTOM}};
}
}

0 comments on commit a361338

Please sign in to comment.