-
Notifications
You must be signed in to change notification settings - Fork 47
EZP-27286: Fix BDD to work with content browse #849
Conversation
003541f
to
6bf4806
Compare
8c5fc3b
to
0b9d48a
Compare
0b9d48a
to
d5ee895
Compare
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.
👍 good work :)
@@ -18,12 +18,12 @@ Feature: Move content | |||
And I select the "eZ Platform/Older News" folder in the Universal Discovery Widget | |||
And I confirm the selection | |||
Then I am notified that "News Flash" has been moved under "Older News" | |||
And I see "Older News/News Flash" in the content tree | |||
And I do not see "Origin/News flash" in the content tree | |||
And There is a content "Older News/News Flash" |
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 would write
And "Older News/News Flash" content item exists
And "Origin/News flash" content item does not exist
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'd even add alternatives to those sentences, even if the implementation is identical:
the content item "Older News/Tomorrow news/News Flash" was (not) removed
the content item "Older News/Tomorrow news/News Flash" was (not) sent to trash
the content item was moved to "Older News/Tomorrow news/News Flash"
They can all use the same theContentItemExists()
implementation, but will sound better in the scenarii.
@@ -18,7 +18,7 @@ Feature: Copy content | |||
And I select the "eZ Platform/Destination" folder in the Universal Discovery Widget | |||
And I confirm the selection | |||
Then I am notified that "News Flash" has been copied under "Destination" | |||
And I see "Destination/News Flash" in the content tree | |||
And There is a content "Destination/News Flash" |
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.
lowercase "T" on there :)
@@ -18,12 +18,12 @@ Feature: Move content | |||
And I select the "eZ Platform/Older News" folder in the Universal Discovery Widget | |||
And I confirm the selection | |||
Then I am notified that "News Flash" has been moved under "Older News" | |||
And I see "Older News/News Flash" in the content tree | |||
And I do not see "Origin/News flash" in the content tree | |||
And There is a content "Older News/News Flash" |
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'd even add alternatives to those sentences, even if the implementation is identical:
the content item "Older News/Tomorrow news/News Flash" was (not) removed
the content item "Older News/Tomorrow news/News Flash" was (not) sent to trash
the content item was moved to "Older News/Tomorrow news/News Flash"
They can all use the same theContentItemExists()
implementation, but will sound better in the scenarii.
*/ | ||
public function clickOnTreePath($path) | ||
public function verifyContentIsMissing($path) |
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.
The method's name should be adapted to be closer to what is checked (function thereIsNoContent($path)
) (including the sentence change suggested by Damien).
* @Then There is a content :path | ||
* Explores the finder of the UDW, find the desired element and close the UDW. | ||
* | ||
* @param string $path The content browse path such as 'Content1/Content2/ContentIWantToClick' |
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.
No need to add the extra spaces, we don't align statements. And there is nothing to align with :)
* | ||
* @param string $path The content browse path such as 'Content1/Content2/ContentIWantToClick' | ||
*/ | ||
public function verifyContent($path) |
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.
verifyContent
isn't a good method name. public function thereIsAContent()
is better.
/** | ||
* Explores the UDW, expanding it and click on the desired element. | ||
* | ||
* @param string $path The content browse path such as 'Content1/Content2/ContentIWantToClick' |
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.
Extra spaces.
* @When I cancel the selection | ||
* Cancel the selection in Universal discovery. | ||
*/ | ||
public function cancelSelection() |
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.
A bit bothered by the fact that UDW sentences and methods are part of CommonActions
. Could you try to change that ?
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.
Good job. Just have it in 1.9.
@@ -14,7 +14,7 @@ cache: | |||
|
|||
matrix: | |||
fast_finish: true | |||
allow_failures: | |||
include: |
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.
This PR should be opened against 1.9 as you allowed failures there in the first place.
3080ee1
to
178b940
Compare
ff7627c
to
b95a3c2
Compare
b95a3c2
to
c91bba5
Compare
updated |
still ok for me :) |
He's not available to do a new round right now.
JIRA : https://jira.ez.no/browse/EZP-27286
Description
With content tree being removed BDD tests are not up-to-date. I'm adding some tests to work with the new content browse.