Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
greg
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
it-bott-integrasjoner
greg
Commits
f793a4c6
Commit
f793a4c6
authored
2 years ago
by
Tore.Brede
Browse files
Options
Downloads
Patches
Plain Diff
Small cleanup
parent
134b46ea
No related branches found
No related tags found
1 merge request
!345
GREG-264: Remember gender when clicking back in wizard
Pipeline
#150009
passed
2 years ago
Stage: venv update
Stage: tests and linting
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
frontend/src/routes/guest/register/steps/register.test.tsx
+7
-37
7 additions, 37 deletions
frontend/src/routes/guest/register/steps/register.test.tsx
with
7 additions
and
37 deletions
frontend/src/routes/guest/register/steps/register.test.tsx
+
7
−
37
View file @
f793a4c6
...
...
@@ -32,6 +32,13 @@ function getEmptyGuestData(): GuestInviteInformation {
}
}
const
allFeaturesOn
=
{
displayContactAtUnit
:
true
,
displayComment
:
true
,
displayContactAtUnitGuestInput
:
true
,
showGenderFieldForGuest
:
true
,
}
test
(
'
Guest register page showing passport field on manual registration
'
,
async
()
=>
{
const
nextHandler
=
(
registerData
:
GuestRegisterData
)
=>
{
console
.
log
(
`Entered data:
${
registerData
}
`
)
...
...
@@ -185,13 +192,6 @@ test('Gender required to be set if gender field is showing', async () => {
console
.
log
(
`Entered data:
${
registerData
}
`
)
}
const
allFeaturesOn
=
{
displayContactAtUnit
:
true
,
displayComment
:
true
,
displayContactAtUnitGuestInput
:
true
,
showGenderFieldForGuest
:
true
,
}
const
formData
:
GuestRegisterData
=
{
firstName
:
'
Test
'
,
lastName
:
'
Test2
'
,
...
...
@@ -295,13 +295,6 @@ test('Gender not required to be set if gender field is not showing', async () =>
test
(
'
Guest not allowed to proceed in wizard if phone number is not valid
'
,
async
()
=>
{
const
nextHandler
=
jest
.
fn
()
const
allFeaturesOn
=
{
displayContactAtUnit
:
true
,
displayComment
:
true
,
displayContactAtUnitGuestInput
:
true
,
showGenderFieldForGuest
:
true
,
}
const
formData
:
GuestRegisterData
=
{
firstName
:
'
Test
'
,
lastName
:
'
Test2
'
,
...
...
@@ -346,13 +339,6 @@ test('Guest not allowed to proceed in wizard if phone number is not valid', asyn
test
(
'
Guest allowed to proceed in wizard if data is valid
'
,
async
()
=>
{
const
nextHandler
=
jest
.
fn
()
const
allFeaturesOn
=
{
displayContactAtUnit
:
true
,
displayComment
:
true
,
displayContactAtUnitGuestInput
:
true
,
showGenderFieldForGuest
:
true
,
}
const
formData
:
GuestRegisterData
=
{
firstName
:
'
Test
'
,
lastName
:
'
Test2
'
,
...
...
@@ -402,13 +388,6 @@ test('Default country code gets set in form values', async () => {
}
const
allFeaturesOn
=
{
displayContactAtUnit
:
true
,
displayComment
:
true
,
displayContactAtUnitGuestInput
:
true
,
showGenderFieldForGuest
:
true
,
}
// Leave the mobile phone country code blank, it should
// be populated with a default value
const
formData
:
GuestRegisterData
=
{
...
...
@@ -464,15 +443,6 @@ test('Foreign country code gets set in form values', async () => {
}
// +393892778451
const
allFeaturesOn
=
{
displayContactAtUnit
:
true
,
displayComment
:
true
,
displayContactAtUnitGuestInput
:
true
,
showGenderFieldForGuest
:
true
,
}
const
formData
:
GuestRegisterData
=
{
firstName
:
'
Test
'
,
lastName
:
'
Test2
'
,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment