-
Notifications
You must be signed in to change notification settings - Fork 115
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ENH Versioned badge to elements #1138
ENH Versioned badge to elements #1138
Conversation
And I click on the "#Form_ElementForm_1 [aria-label^='Insert link'] button" element | ||
Then I should see "Page on this site" in the ".mce-menu.mce-in" element | ||
And I should see "Link to a file" in the ".mce-menu.mce-in" element | ||
And I should see "Link to external URL" in the ".mce-menu.mce-in" element | ||
And I should see "Anchor on a page" in the ".mce-menu.mce-in" element | ||
And I should see "Link to email address" in the ".mce-menu.mce-in" element | ||
And I click on the "#Form_ElementForm_1 button[aria-label^='Insert link']" element | ||
Then I should see "Page on this site" in the ".tox-menu" element | ||
And I should see "Link to a file" in the ".tox-menu" element | ||
And I should see "Link to external URL" in the ".tox-menu" element | ||
And I should see "Anchor on a page" in the ".tox-menu" element | ||
And I should see "Link to email address" in the ".tox-menu" element | ||
# Check the link menu in the WYSIWYG "insert link" button is correct for block 2 | ||
When I click on block 2 | ||
# In CI, the mouse position just happens to produce a tooltip that stops us clicking on the insert link button | ||
# so we have to move the mouse somewhere else to avoid that | ||
And I click on the "input[type='text']" element | ||
And I click on the "#Form_ElementForm_2 [aria-label^='Insert link'] button" element | ||
Then I should see "Page on this site" in the ".mce-menu.mce-in" element | ||
And I should see "Link to a file" in the ".mce-menu.mce-in" element | ||
And I should see "Link to external URL" in the ".mce-menu.mce-in" element | ||
And I should see "Anchor on a page" in the ".mce-menu.mce-in" element | ||
And I should see "Link to email address" in the ".mce-menu.mce-in" element | ||
And I click on the "#Form_ElementForm_2 button[aria-label^='Insert link']" element | ||
Then I should see "Page on this site" in the ".tox-menu" element | ||
And I should see "Link to a file" in the ".tox-menu" element | ||
And I should see "Link to external URL" in the ".tox-menu" element | ||
And I should see "Anchor on a page" in the ".tox-menu" element | ||
And I should see "Link to email address" in the ".tox-menu" element |
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.
These changes probably need to be on 5.1 - I suspect that branch's CI will be failing without it.
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.
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.
Without these changes I get Element #Form_ElementForm_1 [aria-label^='Insert link'] button not found in local env when I run tests even for branch 5.
That would be resolved after merging these changes first into 5.1
(to resolve the failure there) and then merging up to 5
. It's not actually related to the versioned badges work at all.
But there is another issue with limited list of available link types in WIZIWIG.
That's also separate to this issue and should be raised and resolved separately (but is probably just that asset-admin and cms haven't merged up yet, if I had to guess)
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.
Updated
d835dab
to
a952aec
Compare
For failed behat tests I pushed another PR
Yes, you're right this happens since new changes for elemental were already merged up, but not for |
Failed tests require another PR |
@sabina-talipova I've merged up the other PR from 5.1 to 5, though you may need to rebase this PR on 5 in order for behat to pass |
a952aec
to
b23847a
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.
Behat failure is unrelated
Description
New badge element was added in the title to show current state of changes of Element block. There are three different bages:
Draft
for unpublished changes in new blocks;Modified
for modified published blocks;Manual testing steps
Draft
badge.Draft
badge.Draft
badge.Modified
badge.Modified
badge.Issues
Pull request checklist