Conversation
JackBlackLight
left a comment
There was a problem hiding this comment.
This is so great to have all these tests! Thanks for doing this @goldsmithb. I added a couple minor questions/comments but these are good to go.
| @@ -1,5 +1,5 @@ | |||
|
|
|||
| <%= form_with model: [:admin, @email_preference], local: true, data: { turbo: false } do |f| %> | |||
| <%= form_with model: [:admin, @email_preference], local: true, data: { turbo: false, testid: 'email-preference-form' } do |f| %> | |||
There was a problem hiding this comment.
This is a matter of preference, but when I saw 'testid', I thought it might have been left in the code by mistake. I see that at present it is being used by a test and that's why it has this name, which makes sense, but I think I'll be confused by it each time i see it :)
It could conceivably be used outside of a test at some future point, right? Would it be bad to rename it as just 'id'?
| <h3>Pending Works</h3> | ||
| <table class="table small"> | ||
| <table class="table small" data-testid="pending-works-table"> | ||
| <% @pending_works.each do |document| %> |
There was a problem hiding this comment.
See rationale above - could this become 'data-id'?
| page.find('a[href="/download/fedora_content/show_pretty/actest:1/descMetadata/actest1_description.xml?data=meta"]', text: 'text').click | ||
| expect(page).to have_text('Alice\'s Adventures in Wonderland') | ||
| # TODO: Only for administrators - not sure how to test this right now | ||
| context 'when admin' do |
There was a problem hiding this comment.
I'm curious about the challenge you're encountering here. Don't know if I can help, but would be happy to talk it over.
|
Thanks for the review @JackBlackLight ! I will respond to your comments here. For the For the admin-only item tests, I'm not sure what is causing the trouble, but it seems that elements that should render in an admin-user context are not being selected properly in the Capybara tests. Sometimes they work and sometimes they don't, and I haven't been able to get them to pass consistently in the Github CI environment. These are as you know tricky to diagnose, so I would love to take a look with you when you are back. I will leave them as skipped for now. |
|
For some reason, this wasn't picked up as merged, but I rebased and merged this into main last week. Commit is here: 3b107da4aab21aef2d3df44d089176b2a3a0b918 Changes were deployed with v5.0.4 |
Jira Ticket
This PR adds more feature tests to AC, focusing on the features listed in the top AC features to test document that was compiled by Eric, Jack, and myself.
Many of the tests focus on the admin-only interface UI interactions.