-
Notifications
You must be signed in to change notification settings - Fork 19
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
Fix action forbidden error #9923
Conversation
Co-authored-by: Lowell Wood <[email protected]>
visit "/queue" | ||
vet_name = assigned_task.appeal.veteran_full_name | ||
expect(page).to have_content("#{vet_name.split(' ').first} #{vet_name.split(' ').last}") | ||
# how to tell if the link is bold? |
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.
It looks like capybara has a style()
method that we might be able to use.
Alternatively, we could just check that the status changed (and doesn't for attorneys viewing ColocatedTask
s) and assume that we will be using that information to bold/unbold the link or check to see if the function the endpoint calls is called (expect_any_instance_of(TasksController).to receive(:update).exactly(1).times
or something like that).
…x-action-forbidden-error
…x-action-forbidden-error
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.
LGTM!
Resolves #9613
Description
Only attempt to change a task's status to
in_progress
if the user is colocated, because they're the only users who see bold links in the queue for cases they haven't visited yet. This is a temporary fix to silence errors until we tackle #9916