-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
4935_Test-refactoring-element-Sidenav2
4935_Test-refactoring-element-Sidenav
- Loading branch information
evgen460
committed
Jan 24, 2024
1 parent
cb5bbfb
commit 21d3a78
Showing
3 changed files
with
191 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
92 changes: 92 additions & 0 deletions
92
jdi-light-angular-tests/src/main/java/io/github/com/pages/SideNavPage.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,92 @@ | ||
package io.github.com.pages; | ||
|
||
import com.epam.jdi.light.angular.elements.common.Checkbox; | ||
import com.epam.jdi.light.angular.elements.complex.SideNav; | ||
import com.epam.jdi.light.angular.elements.complex.radiobuttons.RadioGroup; | ||
import com.epam.jdi.light.elements.common.UIElement; | ||
import com.epam.jdi.light.elements.pageobjects.annotations.locators.UI; | ||
import com.epam.jdi.light.ui.html.elements.common.Button; | ||
import io.github.com.pages.sections.SideNavSection; | ||
|
||
public class SideNavPage extends NewAngularPage { | ||
|
||
public static SideNav basicSideNav; | ||
public static SideNav basicDrawer; | ||
public static SideNav sidenavBackdropContainer; | ||
public static SideNav implicitMainContent; | ||
public static SideNav openCloseBehavior; | ||
|
||
@UI("#open-close-behavior mat-checkbox") | ||
public static Checkbox sideNavOpened; | ||
|
||
@UI("#open-close-behavior button") | ||
public static Button sideNavToggle; | ||
|
||
public static SideNav configurableMode; | ||
|
||
@UI("#configurable-mode .mat-sidenav button") | ||
public static Button sideToggle; | ||
|
||
@UI("#configurable-mode .mat-sidenav-content button") | ||
public static Button contentToggle; | ||
|
||
@UI("#configurable-mode .mat-sidenav .mat-mdc-radio-group") | ||
public static RadioGroup sideNavRadioGroup; | ||
@UI("#mat-select-position") | ||
public static UIElement sideNavPosition; | ||
|
||
@UI("#mat-select-focus-on-the-first-item") | ||
public static UIElement sideNavFocusSelection; | ||
|
||
@UI("#configurable-mode .mat-sidenav-content .mat-mdc-radio-group") | ||
public static RadioGroup contentRadioGroup; | ||
|
||
public static SideNav customEscapeBackdrop; | ||
|
||
@UI("#custom-escape-backdrop .mat-sidenav button") | ||
public static Button toggleSideNav; | ||
|
||
@UI("#custom-escape-backdrop .mat-sidenav-content button") | ||
public static Button openSideNav; | ||
|
||
public static SideNav autoSizeSideNav; | ||
|
||
@UI("#auto-size-side-nav .mat-drawer-content button") | ||
public static Button toggleAutoNav; | ||
|
||
@UI("#auto-size-side-nav .mat-drawer button") | ||
public static Button toggleExtraText; | ||
|
||
public static SideNav fixedPosition; | ||
|
||
@UI("#fixed-position mat-checkbox") | ||
public static Checkbox fixSideNav; | ||
|
||
@UI("#fixed-position .mat-sidenav-content button") | ||
public static Button toggleFixedSideNav; | ||
|
||
@UI("#fixed-position .mat-sidenav-content mat-form-field input[formcontrolname='top']") | ||
public static UIElement topGap; | ||
|
||
@UI("#fixed-position .mat-sidenav-content mat-form-field input[formcontrolname='bottom']") | ||
public static UIElement bottomGap; | ||
|
||
public static SideNavSection sidenavBackdropDrawer; | ||
|
||
public static SideNav responsiveContent; | ||
|
||
@UI("//*[@id='responsive-content']/preceding-sibling::mat-toolbar/button") | ||
public static Button toolbarToggle; | ||
|
||
@UI("#mat-drawer-open-button") | ||
public static Button backDropToggle; | ||
|
||
@UI("//button[.//span[contains(@class, 'mdc-button__label') and text()='First Element']]") | ||
public static Button firstElement; | ||
|
||
@UI("//button[.//span[contains(@class, 'mdc-button__label') and text()='First Element'] and contains(@class, 'cdk-focused')]") | ||
public static Button firstElementFocused; | ||
|
||
@UI("//button[.//span[contains(@class, 'mdc-button__label') and text()='Second Element']]") | ||
public static Button secondElement; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21d3a78
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wasn't able to retrieve PDD puzzles from the code base and submit them to github. If you think that it's a bug on our side, please submit it to yegor256/0pdd:
Please, copy and paste this stack trace to GitHub: