-
Notifications
You must be signed in to change notification settings - Fork 0
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
VB-3733, VB-3792 User login and booker homepage - tests and code improvements #51
Conversation
tpmcgowan
commented
May 12, 2024
- Improve code and error handling for user login and populating the bookerReference
- Add missing unit tests
- Fix integration tests for login and add beginnings (first page) of a booking journey test
@@ -1,9 +1,8 @@ | |||
import IndexPage from '../pages/index' | |||
import HomePage from '../pages/home' |
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.
Renaming for consistency
import { stubFor } from './wiremock' | ||
|
||
const createToken = () => { |
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.
Removing unnecessary complexity in this stub
server/data/tokenStore.ts
Outdated
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.
Unrelated to this PR - removing this stray file and its test (left-overs from a previous TypeScript template update...)
@@ -1,4 +1,13 @@ | |||
{% extends "./partials/layout.njk" %} | |||
{% from "govuk/components/header/macro.njk" import govukHeader %} | |||
|
|||
{% block header %} |
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.
Authentication error page should use default GOVUK Header; not the One Login header (because you're not logged in to OL)
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.
LGTM!