spec: verify that grading schemes is working with mgp flag
Test Plan: - pass Jenkins - check for syntax errors - make sure new test_ids match up to an existing test case in TestRails Change-Id: Ic7960ee5f8ef6f154179137983c679722a179deb Reviewed-on: https://gerrit.instructure.com/68700 Tested-by: Jenkins QA-Review: Caleb Guanzon <cguanzon@instructure.com> Reviewed-by: Caleb Guanzon <cguanzon@instructure.com> Product-Review: Caleb Guanzon <cguanzon@instructure.com>
This commit is contained in:
parent
d0f8f78239
commit
c4cb2173a2
|
@ -27,4 +27,19 @@ describe "interaction with multiple grading periods" do
|
|||
expect(f('.grading-period-select-button')).to include_text(current_grading_period.title)
|
||||
end
|
||||
end
|
||||
|
||||
context 'grading schemes' do
|
||||
let(:account) { Account.default }
|
||||
let(:admin) { account_admin_user(:account => account) }
|
||||
let!(:enable_mgp_flag) { account.enable_feature!(:multiple_grading_periods) }
|
||||
|
||||
it 'should still be functional with mgp flag turned on and disable adding during edit mode', priority: "1", test_id: 545585 do
|
||||
user_session(admin)
|
||||
get "/accounts/#{account.id}/grading_standards"
|
||||
fj('#react_grading_tabs a[href="#grading-standards-tab"]').click
|
||||
fj('a.btn.pull-right.add_standard_link').click
|
||||
expect(fj('input.scheme_name')).not_to be_nil
|
||||
expect(fj('a.btn.pull-right.add_standard_link')).to have_class('disabled')
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue