Skip to content

Moved user exists error to email field on Signup page #120

Moved user exists error to email field on Signup page

Moved user exists error to email field on Signup page #120

Triggered via pull request September 5, 2024 04:36
Status Failure
Total duration 1m 11s
Artifacts

node.js.yml

on: pull_request
Matrix: build
Fit to window
Zoom out
Zoom in

Annotations

2 errors and 1 warning
src/tests/scenes/login/CreateAccountPage.test.jsx > CreateAccountPage > handles sign up failure with user already exists error: frontend/src/tests/scenes/login/CreateAccountPage.test.jsx#L119
TestingLibraryElementError: Unable to find an element with the text: User already exists. This could be because the text is broken up by multiple elements. In this case, you can provide a function for your text matcher to make your matcher more flexible. Ignored nodes: comments, script, style <body> <div> <div class="login-container" > <h2> Create an account </h2> <div class="form-group" > <div class="check-div" > <svg aria-hidden="true" class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium css-i4bv87-MuiSvgIcon-root" data-testid="CheckCircleIcon" focusable="false" style="color: green; font-size: 20px;" viewBox="0 0 24 24" > <path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m-2 15-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8z" /> </svg> <label for="username" > Username*: </label> </div> <input id="username" name="username" placeholder="Enter your username" type="name" value="testuser" /> </div> <div class="form-group" > <div class="check-div" > <svg aria-hidden="true" class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium css-i4bv87-MuiSvgIcon-root" data-testid="CheckCircleIcon" focusable="false" style="color: green; font-size: 20px;" viewBox="0 0 24 24" > <path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m-2 15-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8z" /> </svg> <label for="email" > Email*: </label> </div> <input id="email" name="email" placeholder="Enter your email" type="email" value="[email protected]" /> <div class="error-message" > An error occurred. Please try again. </div> </div> <div class="form-group" > <div class="check-div" > <svg aria-hidden="true" class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium css-i4bv87-MuiSvgIcon-root" data-testid="CheckCircleIcon" focusable="false" style="color: green; font-size: 20px;" viewBox="0 0 24 24" > <path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m-2 15-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8z" /> </svg> <label for="password" > Password*: </label> </div> <input id="password" name="password" placeholder="Create your password" type="password" value="Password1!" /> </div> <div class="password-constraints" > <svg aria-hidden="true" class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium css-i4bv87-MuiSvgIcon-root" data-testid="CheckCircleIcon" focusable="false" style="color: green; font-size: 20px; margin-right: 5px;" viewBox="0 0 24 24" > <path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m-2 15-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8z" /> </svg> Must be at least 8 characters </div> <div class="password-constraints" > <svg aria-hidden="true" class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium css-i4bv87-MuiSvgIcon-root" data-testid="CheckCircleIcon" focusable="false" style="color: green; font-size: 20px; margin-right: 5px;" viewBox="0 0 24 24" > <
build (22.x)
Process completed with exit code 1.
build (22.x)
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/cache@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/