spec: split student add wiki page test into two

Change-Id: If2e559b8ebe24bb0c5e767bc530f8c8358bc4a54
closes: COREFE-236
Reviewed-on: https://gerrit.instructure.com/210678
Tested-by: Jenkins
Reviewed-by: James Butters <jbutters@instructure.com>
QA-Review: Jeremy Putnam <jeremyp@instructure.com>
Product-Review: Jeremy Putnam <jeremyp@instructure.com>
This commit is contained in:
Jeremy Putnam 2019-09-23 16:13:59 -06:00
parent 99b3a26bf4
commit 2605dbc9cf
1 changed files with 3 additions and 2 deletions

View File

@ -93,17 +93,18 @@ describe "Wiki pages and Tiny WYSIWYG editor" do
expect(new_page).to be_published
end
it "should not allow students to add links to new pages unless they can create pages" do
it "should not allow students to add links to new pages" do
create_wiki_page("test_page", false, "public")
get "/courses/#{@course.id}/pages/test_page/edit"
fj('button:contains("Pages")').click
wait_for_ajax_requests
expect(f("#content")).not_to contain_css('#rcs-LinkToNewPage-btn-link')
end
it "should allow students to add links to pages if they can create them" do
@course.default_wiki_editing_roles = "teachers,students"
@course.save!
get "/courses/#{@course.id}/pages/somenewpage/edit" # page that doesn't exist
fj('button:contains("Pages")').click
wait_for_ajax_requests