spec: remove unnecessary wait_for_ajaximations from specs

closes CNVS-37800

test plan:
* Ensure specs pass

Change-Id: I3b070b131f60c8437c4e7e79aba6d5f0e6a6ccea
Reviewed-on: https://gerrit.instructure.com/116879
Tested-by: Jenkins
Reviewed-by: Keith T. Garner <kgarner@instructure.com>
Product-Review: Keith T. Garner <kgarner@instructure.com>
QA-Review: Keith T. Garner <kgarner@instructure.com>
This commit is contained in:
Shahbaz Javeed 2017-06-23 23:37:00 -04:00
parent 15de5fa40c
commit 6ed695d730
1 changed files with 6 additions and 6 deletions

View File

@ -63,24 +63,24 @@ describe "outcome gradezilla" do
expect(ff('.outcome-student-cell-content')).to have_size 3
click_option('[data-component="SectionFilter"] select', 'All Sections')
wait_for_ajaximations
expect(f('[data-component="SectionFilter"] select').attribute('value')).to eq('0')
selected_section_name = ff('option', f('[data-component="SectionFilter"] select')).find(&:selected?)
expect(selected_section_name).to include_text("All Sections")
click_option('[data-component="SectionFilter"] select', @other_section.name)
wait_for_ajaximations
expect(f('[data-component="SectionFilter"] select').attribute('value')).to eq(@other_section.id.to_s)
selected_section_name = ff('option', f('[data-component="SectionFilter"] select')).find(&:selected?)
expect(selected_section_name).to include_text(@other_section.name)
expect(ff('.outcome-student-cell-content')).to have_size 1
# verify that it remembers the section to show across page loads
Gradezilla.visit(@course)
expect(f('[data-component="SectionFilter"] select').attribute('value')).to eq(@other_section.id.to_s)
selected_section_name = ff('option', f('[data-component="SectionFilter"] select')).find(&:selected?)
expect(selected_section_name).to include_text(@other_section.name)
expect(ff('.outcome-student-cell-content')).to have_size 1
# now verify that you can set it back
click_option('[data-component="SectionFilter"] select', 'All Sections')
wait_for_ajaximations
expect(ff('.outcome-student-cell-content')).to have_size 3
end