-
Notifications
You must be signed in to change notification settings - Fork 41
Core components list handling fixes #381
Conversation
…ndle the List Component
| public class DefaultMultifield implements Multifield { | ||
|
|
||
| @FindBy(css = "button.coral3-Button.coral3-Button--secondary") | ||
| @FindBy(css = "* button[coral-multifield-add]") |
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.
Why a star selector here?
| By.cssSelector(".foundation-picker-buttonlist.coral3-Overlay.is-open"))); | ||
| label.get(0).click(); | ||
| bobcatWait.until(elementToBeClickable(firstResult)); | ||
| firstResult.click(); |
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 chain these two.
mkrzyzanowski
left a comment
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.
Cosmetic changes :)
| @PageObject(css = Locators.AUTOCOMPLETE_CSS) | ||
| public class DefaultTagBrowser implements TagBrowser { | ||
|
|
||
| @FindBy(className = "coral3-Textfield") |
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.
Use the css locator strategy here - it will be more consistent
|
|
||
| @Override | ||
| public void setValue(Object value) { | ||
| List<String> tags = new ArrayList<>( |
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.
Wrap in new ArrayList<>() is unnecessary here
Description
This PR enables Bobcat to handle the List from Core Components and is required for it's BB tests to work wttech/bobcat-aem-tests#7 for #373
Motivation and Context
Types of changes
Checklist: