From a18ae08cec1926ab757562d5006547806c5dfbb7 Mon Sep 17 00:00:00 2001 From: b14ckster Date: Tue, 27 Jun 2023 16:24:59 +0300 Subject: [PATCH 01/30] add grid list implementation and refactor tests --- .../main/java/io/github/com/StaticSite.java | 7 ++++ .../com/pages/sections/GridListSection.java | 11 +++--- .../tests/elements/complex/GridListTests.java | 39 ++++++++++--------- .../light/angular/asserts/GridListAssert.java | 36 +++++++++++++++++ .../angular/elements/complex/GridList.java | 38 ++++++++++++++++++ 5 files changed, 107 insertions(+), 24 deletions(-) create mode 100644 jdi-light-angular/src/main/java/com/epam/jdi/light/angular/asserts/GridListAssert.java create mode 100644 jdi-light-angular/src/main/java/com/epam/jdi/light/angular/elements/complex/GridList.java diff --git a/jdi-light-angular-tests/src/main/java/io/github/com/StaticSite.java b/jdi-light-angular-tests/src/main/java/io/github/com/StaticSite.java index 25d5b152cc..54bc3dfeb6 100644 --- a/jdi-light-angular-tests/src/main/java/io/github/com/StaticSite.java +++ b/jdi-light-angular-tests/src/main/java/io/github/com/StaticSite.java @@ -1,7 +1,14 @@ package io.github.com; +import com.epam.jdi.light.elements.composite.Form; import com.epam.jdi.light.elements.pageobjects.annotations.JSite; import com.epam.jdi.light.elements.pageobjects.annotations.Url; +import com.epam.jdi.light.elements.pageobjects.annotations.Url; +import com.epam.jdi.light.elements.pageobjects.annotations.locators.Css; +import com.epam.jdi.light.elements.pageobjects.annotations.locators.UI; +import com.epam.jdi.light.ui.html.elements.common.Button; +import com.epam.jdi.light.ui.html.elements.common.Text; +import com.jdiai.tools.DataClass; import io.github.com.pages.AngularPage; import io.github.com.pages.AutocompletePage; import io.github.com.pages.BadgePage; diff --git a/jdi-light-angular-tests/src/main/java/io/github/com/pages/sections/GridListSection.java b/jdi-light-angular-tests/src/main/java/io/github/com/pages/sections/GridListSection.java index 8b74c5c2c2..54179ef62a 100644 --- a/jdi-light-angular-tests/src/main/java/io/github/com/pages/sections/GridListSection.java +++ b/jdi-light-angular-tests/src/main/java/io/github/com/pages/sections/GridListSection.java @@ -1,14 +1,13 @@ package io.github.com.pages.sections; -import com.epam.jdi.light.elements.common.Label; -import com.epam.jdi.light.elements.complex.JList; +import com.epam.jdi.light.angular.elements.complex.GridList; import com.epam.jdi.light.elements.composite.Section; import com.epam.jdi.light.elements.pageobjects.annotations.locators.UI; public class GridListSection extends Section { - @UI("#basic-grid-list mat-grid-tile") - public JList