-
Notifications
You must be signed in to change notification settings - Fork 6
Conversation
Refactor Title tests to not rely on useless interface
Finish tests for List Item Settings
Note: the tests work now only with a custom BB build and the list item pages creation is still commented out due to faulty xml parsing in BB
Finish all List Component tests
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.
Small details, overall 💯
aem65/build.gradle
Outdated
@@ -17,7 +17,7 @@ apply plugin: 'io.qameta.allure' | |||
|
|||
sourceCompatibility = 1.8 | |||
|
|||
def bobcatVersion = System.getProperty("bobcat.version", "2.1.0") | |||
def bobcatVersion = System.getProperty("bobcat.version", "2.1.1-SNAPSHOT") |
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.
For development purposes, set the variable via the command line - this way users can clone this repo and run tests with the latest Bobcat on their own.
import com.cognifide.qa.bb.qualifier.PageObject; | ||
import com.google.inject.Inject; | ||
|
||
@PageObject(css = ".cmp-list") |
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.
Hm, maybe a link to docs from the AEM Core components repo in the JavaDoc?
linkElements) { | ||
links.add(element.getAttribute(Attributes.HREF)); | ||
} | ||
return links; |
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.
You can also do this with Stream API :):
linkElements.stream().map(element -> element.getAttribute(Attributes.HREF)).collect(toList());
Tests for the List Component for wttech/bobcat#373 - requires wttech/bobcat#381 to work