-
Notifications
You must be signed in to change notification settings - Fork 56
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
[ENG-6815][ENG-6843] Update condition to show edit button #2460
[ENG-6815][ENG-6843] Update condition to show edit button #2460
Conversation
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.
One non-blocking comment.
@@ -78,8 +78,7 @@ module('Acceptance | preprints | detail', hooks => { | |||
await visit('/preprints/osf/test'); | |||
|
|||
// Check edit and new version buttons | |||
assert.dom('[data-test-edit-preprint-button]').exists('Edit button is displayed'); | |||
assert.dom('[data-test-edit-preprint-button]').containsText('Edit', 'Edit button text is correct'); | |||
assert.dom('[data-test-edit-preprint-button]').doesNotExist('Edit button is not displayed for prior versions'); |
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 seems like a good opportunity to add tests for the other conditions this ticket covers.
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.
Verified locally 🎆
9366206
into
CenterForOpenScience:feature/preprints-doi-versioning
Purpose
Summary of Changes
Screenshot(s)
Side Effects
QA Notes