Skip to content
This repository has been archived by the owner on Dec 20, 2021. It is now read-only.

Core components list tests #7

Merged
merged 8 commits into from
Oct 7, 2019
Merged

Conversation

kaczymuczy
Copy link
Contributor

@kaczymuczy kaczymuczy commented Sep 18, 2019

Tests for the List Component for wttech/bobcat#373 - requires wttech/bobcat#381 to work

volodymyr.vashchuk added 7 commits September 8, 2019 11:31
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
Copy link
Contributor

@mkrzyzanowski mkrzyzanowski left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Small details, overall 💯

@@ -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")
Copy link
Contributor

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")
Copy link
Contributor

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;
Copy link
Contributor

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());

@kaczymuczy kaczymuczy merged commit 08f61ff into master Oct 7, 2019
@kaczymuczy kaczymuczy deleted the core-components-list-tests branch October 7, 2019 08:06
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants