Skip to content

Commit bb19e9f

Browse files
committed
spec: fix outdated specs
Change-Id: I24f88a5444e52346b4df134dc31a8e6fb090a9d6 Reviewed-on: https://gerrit.instructure.com/73264 Tested-by: Jenkins Reviewed-by: Adrian Russell <arussell@instructure.com> Product-Review: Amber Taniuchi <amber@instructure.com> QA-Review: Amber Taniuchi <amber@instructure.com> Reviewed-by: Amber Taniuchi <amber@instructure.com>
1 parent 83cd066 commit bb19e9f

4 files changed

Lines changed: 5 additions & 14 deletions

File tree

spec/selenium/quizzes/quizzes_publish_quiz_teacher_spec.rb

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,6 @@
1818
get "/courses/#{@course.id}/quizzes/#{@quiz.id}"
1919
end
2020

21-
context 'before the ajax calls finish' do
22-
it 'temporarily changes the button text to |Publishing...|', priority: "1", test_id: 398935 do
23-
pause_ajax do
24-
f('#quiz-publish-link').click
25-
expect(fj('.publish-text', '#quiz-publish-link').text).to include_text 'Publishing...'
26-
end
27-
end
28-
end
29-
3021
context 'after the ajax calls finish' do
3122
before(:each) do
3223
f('#quiz-publish-link').click

spec/selenium/quizzes/quizzes_teacher_menu_tools_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
@quiz = @course.quizzes.create!(title: 'score 10')
2828
end
2929

30-
it 'shows tool launch links in the gear for items on the index', priority: "1", test_id: 209942 do
30+
it 'shows tool launch links in the gear for items on the index', priority: "2", test_id: 209942 do
3131
get "/courses/#{@course.id}/quizzes"
3232
wait_for_ajaximations
3333

spec/selenium/quizzes/quizzes_unpublish_quiz_teacher_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ def unpublish_quiz_via_ui
3636
ffj('li', 'ul.page-action-list').each { |link| links_text << link.text }
3737
expect(links_text.size).to eq 0
3838

39-
# removes the |Take the Quiz| button
40-
expect(f('#take_quiz_link')).to be_nil
39+
# retains both |Preview| buttons
40+
expect(ff('#preview_quiz_button').count).to eq 2
4141

4242
# shows pre-published options when clicking the cog menu tool
4343
fj('a.al-trigger', '.header-group-right').click

spec/selenium/quizzes/varied_due_dates/quizzes_vdd_show_page_teacher_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@
3737
include_text("#{format_time_for_view(@lock_at_b)}")
3838
end
3939

40-
it 'does not allow taking the quiz', priority: "1", test_id: 282394 do
41-
expect(ff('.take_quiz_button').size).to eq(0)
40+
it 'allows previewing the quiz', priority: "1", test_id: 282394 do
41+
expect(ff('#preview_quiz_button').count).to eq 2
4242
end
4343
end
4444
end

0 commit comments

Comments
 (0)