-
Notifications
You must be signed in to change notification settings - Fork 479
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Teacher dashboard UI tests - part 1 #57269
Merged
Merged
Changes from all commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
449f8aa
modified to add tests
kobryan0619 602c571
outline tests needed
kobryan0619 f275656
modify teacher_dashboard feature
kobryan0619 da17462
modified comments
kobryan0619 bc2905f
added first test
kobryan0619 4bb31d4
Merge branch 'staging' into kaitie/ui-tests-for-progress-view-1
kobryan0619 11a69d3
experiments.
kobryan0619 158919a
modify ids
kobryan0619 d51071d
Merge branch 'staging' into kaitie/ui-tests-for-progress-view-1
kobryan0619 50ed638
passing test
kobryan0619 0e2cc8e
merge in staging
kobryan0619 2b988af
modify test
kobryan0619 8b121b0
added back in tests
kobryan0619 93eecc7
added blank line
kobryan0619 88dc709
Merge branch 'staging' into kaitie/ui-tests-for-progress-view-1
kobryan0619 5140658
modified based on feedback
kobryan0619 e82ca01
updated from staging
kobryan0619 File filter
Filter by extension
Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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
34 changes: 34 additions & 0 deletions
34
...rd/test/ui/features/teacher_tools/teacher_dashboard/teacher_dashboard_progress_v2.feature
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,34 @@ | ||
@no_mobile | ||
Feature: Using the V2 teacher dashboard | ||
|
||
Scenario: Teacher can open and close Icon Key and details | ||
Given I create an authorized teacher-associated student named "Sally" | ||
Given I am assigned to unit "allthethings" | ||
And I complete the level on "http://studio.code.org/s/allthethings/lessons/2/levels/1" | ||
|
||
When I sign in as "Teacher_Sally" and go home | ||
And I get levelbuilder access | ||
lfryemason marked this conversation as resolved.
Show resolved
Hide resolved
|
||
When I click selector "a:contains(Untitled Section)" once I see it to load a new page | ||
And I wait until element "#uitest-teacher-dashboard-nav" is visible | ||
And check that the URL contains "/teacher_dashboard/sections/" | ||
And I wait until element "#uitest-course-dropdown" is visible | ||
Then I append "/?enableExperiments=section_progress_v2" to the URL | ||
|
||
# toggle to V2 progress view | ||
Then I click selector "#ui-test-toggle-progress-view" | ||
And I wait until element "h6:contains(Icon Key)" is visible | ||
And I wait until element "#ui-test-progress-table-v2" is visible | ||
And element "#ui-test-progress-table-v2" is visible | ||
|
||
# Teacher can minimize icon key | ||
And I wait until element "strong:contains(Assignment Completion States)" is visible | ||
Then I click selector "h6:contains('Icon Key')" | ||
And element "strong:contains(Assignment Completion States)" is hidden | ||
Then I click selector "h6:contains('Icon Key')" | ||
And I wait until element "strong:contains(Assignment Completion States)" is visible | ||
|
||
# Teacher can open the more details of the icon key and close it | ||
Then I click selector "a:contains('More Details')" | ||
And I wait until element "h3:contains(Progress Tracking Icon Key)" is visible | ||
And I click selector "#ui-close-dialog" | ||
And element "h3:contains(Progress Tracking Icon Key)" is hidden |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you know what changed here and why? It's probably fine, but just want to check.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Honestly, I cannot see a difference myself...