-
Notifications
You must be signed in to change notification settings - Fork 47
[Behat] Improve CommonActions and Authentication context Css selectors #653
base: master
Are you sure you want to change the base?
[Behat] Improve CommonActions and Authentication context Css selectors #653
Conversation
7a2a9fa to
6b952e4
Compare
|
looks like a good direction, as for the details here @bdunogier would have more insight on bdd part and @dpobel / @yannickroger on templates parts. |
| @@ -1 +1 @@ | |||
| <a href="{{ path route.name route.params }}" class="ez-navigation-item">{{ title }}</a> | |||
| <a href="{{ path route.name route.params }}" class="ez-navigation-item" data-navigation="{{ title }}">{{ title }}</a> | |||
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.
what is the point of that ? ok you are not searching by text content, but you are still searching by text which can be translated or changed for whatever reason. Actually, each navigation item has a unique identifier so we should probably expose it somewhere so that you can use it in the 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.
Created https://jira.ez.no/browse/EZP-26120 for 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.
@dpobel okay, I have already done this, should I include it in this PR or in a separate one?
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 made it in a separate PR so it's easier to review #654
3202177 to
730d53c
Compare
730d53c to
4a95e96
Compare
4a95e96 to
b83b969
Compare
|
ping @dpobel, @bdunogier. After trying some different way I found that in order to use the |
|
Could you link to the change you're referring to @miguelcleverti ? |
| @@ -1,7 +1,7 @@ | |||
| <ul class="ez-tree-level"> | |||
| {{#each children}} | |||
| <li class="ez-tree-node{{#if state.leaf}} is-tree-node-leaf{{/if}} {{#if state.open}}is-tree-node-open{{else}}is-tree-node-close{{/if}}" data-node-id="{{id}}"> | |||
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.
@bdunogier, @dpobel these changes
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.
what's the point of moving the title from the link to the list item ? I mean you can find the link and just retrieve the parent node to get the list item. I'm saying that because with this change, you'll end up with something like:
<li title="A nice Content in the tree">
<a href="#" <!-- ... -->>A nice Content in the tree</li>
<ul class="ez-tree-level">
<li title="A subitm of a nice Content in the tree">
<!-- ... -->
</li>
</ul>
</li>then the title is also associated with the subitems (the ul) of a given Location which is a bit weird semantically speaking. Also the li represents a Location in the tree while the a represents the Content item so the name (title) should stay at the Content item level since a Location has no name.
|
Looks okay to me. @dpobel ? |
b83b969 to
dec75aa
Compare
|
ping @dpobel @bdunogier @joaoinacio. Removed the previous changes to the |
dec75aa to
ebe461c
Compare
|
Seems you might want to rebase the PR or something, as there are some behat failures here. |
c1b1da1 to
62ff951
Compare
243d106 to
2ce2c82
Compare
|
All the Behat test failures are due to Deprecation warning. It is ready to be reviewed. |
|
Master is not failing on behat, could you rebase on top of latests? and if you introduce deprecation issues please fix them ;) Besides that +1 so far :) |
2ce2c82 to
6476362
Compare
|
PR approved by QA |
6476362 to
da10b7a
Compare
In order to stop fetching the elements using their text value the css selectors needed some changes.
This PR adds some specific tag to the PlatformUI markup in order to better fetch the elements. Also some unused methods were cleaned up, since their were not being used anymore.