-
Notifications
You must be signed in to change notification settings - Fork 47
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-Sidenav3
- Loading branch information
evgen460
committed
Jan 26, 2024
1 parent
21d3a78
commit e3e77f3
Showing
4 changed files
with
56 additions
and
20 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
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
21 changes: 21 additions & 0 deletions
21
jdi-light-angular/src/main/java/com/epam/jdi/light/angular/asserts/SideNaveAssert.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,21 @@ | ||
package com.epam.jdi.light.angular.asserts; | ||
|
||
import com.epam.jdi.light.angular.elements.complex.SideNav; | ||
import com.epam.jdi.light.asserts.generic.UIAssert; | ||
import com.epam.jdi.light.common.JDIAction; | ||
import org.hamcrest.Matchers; | ||
import org.openqa.selenium.Point; | ||
|
||
import static com.epam.jdi.light.asserts.core.SoftAssert.jdiAssert; | ||
|
||
public class SideNaveAssert extends UIAssert<SideNaveAssert, SideNav> { | ||
|
||
private static final String LOCATION_ERROR_MESSAGE = "SideNavSection with location %s isn't on the right side"; | ||
|
||
@JDIAction(value = "Assert that '{name}' has section with location '{0}' on the right side", isAssert = true) | ||
public SideNaveAssert sideNavSectionOnTheRight(Point locationOfSection) { | ||
jdiAssert(element().isSectionInRightPart(locationOfSection), Matchers.is(true), | ||
String.format(LOCATION_ERROR_MESSAGE, locationOfSection)); | ||
return this; | ||
} | ||
} |
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
e3e77f3
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: