yeatmanlab / roar-dashboard

A dashboard to administer ROAR assessments
https://roar.education
Other
4 stars 4 forks source link

E2E for signUp code invitation #806

Closed Emily-ejag closed 5 days ago

Emily-ejag commented 1 month ago

Proposed changes

This Cypress test performs the following steps:

  1. Logs in as a partner admin user using credentials from the environment variables.
  2. Navigates to the list of organizations (e.g., Districts, Schools, Classes, and Groups).
  3. Iterates over each organization type to ensure that the organization exists.
  4. For the last organization, it clicks on a specific "copy invitation" button to copy an activation code to the clipboard.
  5. Constructs a registration URL using the copied activation code and navigates to that URL.
  6. On the registration page:
    • Fills in the form fields (first name, last name, email, and password) using parent information from the environment variables.
    • Clicks on a checkbox to agree to terms or conditions.
    • Waits for 2 seconds and then clicks the "Continue" button.
    • Clicks the "Next" button to proceed with registration.
  7. Verifies that the page displays "Groups - Cypress Test Group" to confirm successful navigation and group creation.

Types of changes

What types of changes does this pull request introduce?

Checklist

Justification of missing checklist items

Further comments

github-actions[bot] commented 1 month ago

Coverage Report

Status Category Percentage Covered / Total
🔵 Lines 0.98% 73 / 7436
🔵 Statements 0.9% 74 / 8170
🔵 Functions 0.76% 14 / 1825
🔵 Branches 0.45% 20 / 4410
File Coverage
File Stmts % Branch % Funcs % Lines Uncovered Lines
Changed Files
src/components/ListOrgs.vue 0% 0% 0% 0% 171-182, 184-189, 185-187, 186, 188, 191-196, 192-194, 193, 195, 199-200, 202-208, 204, 210, 210-211, 211, 213-240, 214-219, 221, 221, 223-228, 225-227, 229-232, 230-231, 233-235, 234, 236-238, 237, 239, 242-245, 244, 247, 247, 249-255, 251, 258-275, 261-266, 269-274, 278-280, 279, 282-288, 284, 294-310, 297-306, 312-322, 313-321, 340-403, 341-402, 343, 345-353, 346-352, 355-363, 356-362, 366, 368-383, 368-383, 386, 388-393, 395-401, 405-461, 406-411, 413-418, 414-417, 420-423, 421-422, 425-458, 460, 463-476, 464, 464-475, 466-474, 478-484, 479-483, 481-482, 486-489, 487-488, 491-494, 492-493, 496-498, 497, 500-531, 501-530, 511-517, 520-526, 529, 534-537, 535, 535-536, 539-541, 540, 540, 543-545, 544, 544, 547-549, 548, 551-553, 552, 555-558, 557, 3-4, 1, 16, 21, 33, 37, 49, 71, 79, 81, 93, 96, 110, 113, 132, 1-14, 1-23, 1-39, 63-64, 1-73, 91, 108, 129
src/components/auth/RegisterStudent.vue 0% 0% 0% 0% 345-347, 349-354, 356, 361-362, 364-366, 365, 368-370, 369, 372-373, 375-400, 402-426, 429-452, 451, 455-459, 456-458, 457, 462-467, 463-466, 464-465, 471-472, 476-481, 477, 479-480, 484, 487, 489-529, 490, 492-497, 493-496, 499-507, 500-505, 502-504, 503, 506, 509, 511-514, 512-513, 516-528, 518-527, 519-525, 520-524, 526, 531-558, 532-557, 533-542, 535-540, 543-556, 544-548, 550-554, 552-553, 555, 560-572, 561, 563, 563, 565-569, 566, 568, 568, 571, 574-586, 575, 577, 577, 579-583, 580, 582, 582, 585, 588-604, 606-610, 612-619, 621, 623-628, 630-633, 635-638, 640-643, 646-667, 669, 671-682, 672-680, 673-679, 675-678, 681, 2-3, 6-7, 9, 16, 1, 49, 54-55, 64-65, 80, 84, 105, 127, 130, 132, 134, 160, 176, 178, 190, 194, 196, 207, 209-210, 220-221, 231, 233-234, 244-245, 255, 257-258, 268-269, 279, 281-282, 294, 305, 313, 1-11, 1-21, 32, 60, 1-68, 1-89, 1-115, 1-133, 1-139, 1-148, 1-165, 1-180, 1-191, 1-198, 1-212, 1-223, 1-236, 1-247, 1-260, 1-271, 1-284, 298, 308, 318, 1-321
src/constants/routes.js 0% 100% 100% 0% 9-13
Generated in workflow #685 for commit 6bb6201 by the Vitest Coverage Report Action
github-actions[bot] commented 1 month ago

Visit the preview URL for this PR (updated for commit 6bb6201):

https://roar-staging--pr806-e2e-signup-code-invi-zyman5gn.web.app

(expires Fri, 18 Oct 2024 18:50:41 GMT)

🔥 via Firebase Hosting GitHub Action 🌎

Sign: 2631e9c58fd0104ecbfddd72a62245ddac467460

cypress[bot] commented 1 month ago

roar-dashboard-e2e    Run #8232

Run Properties:  status check passed Passed #8232  •  git commit 6bb6201b65: Component Tests for PR 806 "E2E for signUp code invitation" from commit "6bb6201...
Project roar-dashboard-e2e
Run status status check passed Passed #8232
Run duration 01m 35s
Commit git commit 6bb6201b65: Component Tests for PR 806 "E2E for signUp code invitation" from commit "6bb6201...
Committer Emily Arteaga
View all properties for this run ↗︎

Test results
Tests that failed  Failures 0
Tests that were flaky  Flaky 0
Tests that did not run due to a developer annotating a test with .skip  Pending 0
Tests that did not run due to a failure in a mocha hook  Skipped 1
Tests that passed  Passing 4