-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Customize alt text instructions link
- Loading branch information
Showing
2 changed files
with
26 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# frozen_string_literal: true | ||
|
||
require 'rails_helper' | ||
|
||
describe 'Alt text instructions', :js do | ||
include JavascriptFeatureHelpers | ||
|
||
let(:exhibit) { create(:exhibit) } | ||
let(:exhibit_curator) { create(:exhibit_curator, exhibit: exhibit) } | ||
|
||
before do | ||
login_as exhibit_curator | ||
visit spotlight.edit_exhibit_home_page_path(exhibit) | ||
add_widget 'uploaded_items' | ||
end | ||
|
||
it 'displays alternative text guidelines with the customized link' do | ||
expect(page).to have_content('For each item, please enter alternative text') | ||
expect(page).to have_link('Guidelines for writing alt text.', href: 'https://uit.stanford.edu/accessibility/concepts/images') | ||
end | ||
end |