-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
19 changed files
with
147 additions
and
5 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -94,6 +94,17 @@ context('Admin: Generate Quiz and Surveys Screenshots', () => { | |
cy.snap('page-quiz-settings'); | ||
}) | ||
|
||
it('quiz grading page', () => { | ||
// going to expect email server is already configured | ||
cy.viewport(1100, 500); | ||
cy.visit('/administrator/quizzes/ChessInsight/grading') | ||
cy.get('[data-cy="[email protected]"]').click() | ||
cy.get('[data-cy="question_1"] [data-cy="questionDisplayText"]') | ||
cy.snap('page-quiz-grading'); | ||
cy.snap('component-quiz-grading-email-subscriptions', '[data-cy="quizRunsToGradeTable"] [data-pc-section="header"]'); | ||
}) | ||
|
||
|
||
it('quiz survey page', () => { | ||
// cy.viewport(1100, 500); | ||
cy.visit('/administrator/quizzes/CodingLanguageandFrameworksPreferences/') | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -119,5 +119,16 @@ context('Progress and Ranking: Generate Screenshots', () => { | |
cy.snap('client-display-quiz-run', '[data-cy="skillsDisplayHome"]'); | ||
}) | ||
|
||
it('quiz grading attempts page', () => { | ||
cy.request('POST', '/logout'); | ||
cy.login('[email protected]'); | ||
cy.visit('/progress-and-rankings/my-quiz-attempts') | ||
cy.get('[data-cy="myQuizAttemptsTable"] [data-cy="skillsBTableTotalRows"]').should('have.text', '9') | ||
cy.snap('page-my-quiz-attempts'); | ||
|
||
cy.get('[data-cy="myQuizAttemptsTable"] [data-p-index="0"] a').click() | ||
cy.snap('page-my-quiz-single-attempt'); | ||
}) | ||
|
||
|
||
}) |
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 |
---|---|---|
|
@@ -45,15 +45,29 @@ Cypress.Commands.add('snap', (name, selector = null, options = {}) => { | |
} | ||
}); | ||
|
||
Cypress.Commands.add('login', () => { | ||
Cypress.Commands.add('login', (username = '[email protected]') => { | ||
cy.visit('/') | ||
cy.get('[id="username"]').type('[email protected]'); | ||
cy.get('[id="username"]').type(username); | ||
cy.get('[id="inputPassword"]').type('password'); | ||
cy.get('[data-cy="login"]').should('be.enabled') | ||
cy.get('[data-cy="login"]').click({force: true}); | ||
cy.contains('Progress And Rankings'); | ||
}); | ||
|
||
Cypress.Commands.add('saveEmailServer', () => { | ||
cy.log('configuring email'); | ||
cy.request({ | ||
method: 'POST', | ||
url: '/root/saveEmailSettings', | ||
body: { | ||
publicUrl: 'http://localhost:8082/', | ||
fromEmail: '[email protected]', | ||
host: 'localhost', | ||
port: 1025, | ||
'protocol': 'smtp' | ||
}, | ||
}); | ||
}) | ||
Cypress.Commands.add('clickNav', (navName) => { | ||
cy.get(`[data-cy="nav-${navName}"]`).click(); | ||
}); | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# Admin Groups | ||
|
||
Admin Groups streamline the ability to manage a list of administrators for one or more projects and/or quizzes. | ||
Once an Admin Group is created you can easily add/remove members to/from it. A group can then be assigned to one or more projects and/or quizzes | ||
which then allows the members of the group to have administrative privileges to the assigned projects and/or quizzes. | ||
|
||
To create an admin group please navigate to ``Admin Groups`` page and click ``Admin Group +`` button. | ||
|
||
![page-admin-groups.png](../../screenshots/admin/page-admin-groups.png) | ||
|
||
To assign a group to a project please navigate to ``Adming Groups -> Projects`` then select one of the existing projects from the dropdown. | ||
|
||
![page-admin-groups-projects.png](../../screenshots/admin/page-admin-groups-projects.png) | ||
|
||
To assign a group to a quiz please navigate to ``Adming Groups -> Quizzes`` then select one of the existing quizzes from the dropdown. | ||
|
||
![page-admin-groups-quizzes.png](../../screenshots/admin/page-admin-groups-quizzes.png) |
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
Binary file added
BIN
+4.37 KB
docs/screenshots/admin/component-quiz-grading-email-subscriptions.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+13.7 KB
(110%)
docs/screenshots/progress-and-ranking/page-progress-and-rankings.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.