spec: add test for alt text added from image options tray
Change-Id: I242c8b1be8578c6b45567176c54af48853894841 refs: CORE-2653 Reviewed-on: https://gerrit.instructure.com/194919 Tested-by: Jenkins Reviewed-by: Robert Lamb <rlamb@instructure.com> QA-Review: Jeremy Putnam <jeremyp@instructure.com> Product-Review: Jeremy Putnam <jeremyp@instructure.com>
This commit is contained in:
parent
782f7eeabc
commit
2ee9d607dd
|
@ -234,6 +234,10 @@ module RCENextPage
|
|||
|
||||
end
|
||||
|
||||
def alt_text_textbox
|
||||
f('textarea[aria-describedby="alt-text-label-tooltip"]')
|
||||
end
|
||||
|
||||
# ---------------------- Actions ----------------------
|
||||
|
||||
def click_pages_accordion
|
||||
|
|
|
@ -315,6 +315,24 @@ describe "RCE next tests" do
|
|||
end
|
||||
end
|
||||
|
||||
it "should add alt text to image using options tray" do
|
||||
alt_text = "fear is the mindkiller"
|
||||
page_title = "Page1"
|
||||
create_wiki_page_with_embedded_image(page_title)
|
||||
|
||||
visit_existing_wiki_edit(@course, page_title)
|
||||
|
||||
click_embedded_image_for_options
|
||||
click_image_options_button
|
||||
|
||||
alt_text_textbox.send_keys(alt_text)
|
||||
click_image_options_done_button
|
||||
|
||||
in_frame rce_page_body_ifr_id do
|
||||
expect(wiki_body_image.attribute('alt')).to include alt_text
|
||||
end
|
||||
end
|
||||
|
||||
it "should display assignment publish status in links accordion" do
|
||||
skip('Unskip in CORE-2619')
|
||||
title = "Assignment-Title"
|
||||
|
|
Loading…
Reference in New Issue