forked from instructure/canvas-lms
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
srgb global options: hide student names
fixes CNVS-10021 test plan: - in screenreader gradebook - click the 'Hide Student Names' checkbox - the students drop down should say 'Student 1', 'Student 2', etc. - click the checkbox again - the students drop down should list the student names Change-Id: I566113a413c9aed294e1238c3a4dcd6be799fbc3 Reviewed-on: https://gerrit.instructure.com/28007 Tested-by: Jenkins <[email protected]> Reviewed-by: Simon Williams <[email protected]> QA-Review: Caleb Guanzon <[email protected]> Reviewed-by: Matthew Irish <[email protected]> Reviewed-by: Aaron Cannon <[email protected]> Product-Review: Simon Williams <[email protected]>
- Loading branch information
1 parent
531df26
commit 1d11fee
Showing
5 changed files
with
95 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
38 changes: 38 additions & 0 deletions
38
app/coffeescripts/ember/screenreader_gradebook/tests/integration/settings.spec.coffee
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
define [ | ||
'../start_app' | ||
'ember' | ||
'../shared_ajax_fixtures' | ||
'jquery' | ||
'vendor/jquery.ba-tinypubsub' | ||
], (startApp, Ember, fixtures, $) -> | ||
|
||
App = null | ||
|
||
fixtures.create() | ||
|
||
module 'hide student names', | ||
setup: -> | ||
App = startApp() | ||
visit('/').then => | ||
@controller = App.__container__.lookup('controller:screenreader_gradebook') | ||
teardown: -> | ||
Ember.run App, 'destroy' | ||
|
||
test 'student names are hidden', -> | ||
selection = '#student_select option[value=1]' | ||
equal $(selection).text(), "Bob" | ||
click("#hide_names_checkbox").then => | ||
equal $(selection).text(), "Student 1" | ||
click("#hide_names_checkbox").then => | ||
equal $(selection).text(), "Bob" | ||
|
||
test 'secondary id says hidden', -> | ||
Ember.run => | ||
@controller.set('selectedStudent', @controller.get('students').objectAt(0)) | ||
|
||
reg = /^\s*$/ #all whitespace | ||
ok reg.test $("#secondary_id").text() | ||
click("#hide_names_checkbox").then => | ||
reg = /hidden/ | ||
ok reg.test $("#secondary_id").text() | ||
|