From 2605dbc9cfbd02592278600981d8e885d45d27a2 Mon Sep 17 00:00:00 2001 From: Jeremy Putnam Date: Mon, 23 Sep 2019 16:13:59 -0600 Subject: [PATCH] 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 QA-Review: Jeremy Putnam Product-Review: Jeremy Putnam --- spec/selenium/rcs/wiki_and_tiny_student_spec.rb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/spec/selenium/rcs/wiki_and_tiny_student_spec.rb b/spec/selenium/rcs/wiki_and_tiny_student_spec.rb index 970ac1e8487..0e29f7270d2 100644 --- a/spec/selenium/rcs/wiki_and_tiny_student_spec.rb +++ b/spec/selenium/rcs/wiki_and_tiny_student_spec.rb @@ -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