Skip to content
Snippets Groups Projects
Commit f793a4c6 authored by Tore.Brede's avatar Tore.Brede
Browse files

Small cleanup

parent 134b46ea
No related branches found
No related tags found
1 merge request!345GREG-264: Remember gender when clicking back in wizard
Pipeline #150009 passed
...@@ -32,6 +32,13 @@ function getEmptyGuestData(): GuestInviteInformation { ...@@ -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 () => { test('Guest register page showing passport field on manual registration', async () => {
const nextHandler = (registerData: GuestRegisterData) => { const nextHandler = (registerData: GuestRegisterData) => {
console.log(`Entered data: ${registerData}`) console.log(`Entered data: ${registerData}`)
...@@ -185,13 +192,6 @@ test('Gender required to be set if gender field is showing', async () => { ...@@ -185,13 +192,6 @@ test('Gender required to be set if gender field is showing', async () => {
console.log(`Entered data: ${registerData}`) console.log(`Entered data: ${registerData}`)
} }
const allFeaturesOn = {
displayContactAtUnit: true,
displayComment: true,
displayContactAtUnitGuestInput: true,
showGenderFieldForGuest: true,
}
const formData: GuestRegisterData = { const formData: GuestRegisterData = {
firstName: 'Test', firstName: 'Test',
lastName: 'Test2', lastName: 'Test2',
...@@ -295,13 +295,6 @@ test('Gender not required to be set if gender field is not showing', async () => ...@@ -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 () => { test('Guest not allowed to proceed in wizard if phone number is not valid', async () => {
const nextHandler = jest.fn() const nextHandler = jest.fn()
const allFeaturesOn = {
displayContactAtUnit: true,
displayComment: true,
displayContactAtUnitGuestInput: true,
showGenderFieldForGuest: true,
}
const formData: GuestRegisterData = { const formData: GuestRegisterData = {
firstName: 'Test', firstName: 'Test',
lastName: 'Test2', lastName: 'Test2',
...@@ -346,13 +339,6 @@ test('Guest not allowed to proceed in wizard if phone number is not valid', asyn ...@@ -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 () => { test('Guest allowed to proceed in wizard if data is valid', async () => {
const nextHandler = jest.fn() const nextHandler = jest.fn()
const allFeaturesOn = {
displayContactAtUnit: true,
displayComment: true,
displayContactAtUnitGuestInput: true,
showGenderFieldForGuest: true,
}
const formData: GuestRegisterData = { const formData: GuestRegisterData = {
firstName: 'Test', firstName: 'Test',
lastName: 'Test2', lastName: 'Test2',
...@@ -402,13 +388,6 @@ test('Default country code gets set in form values', async () => { ...@@ -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 // Leave the mobile phone country code blank, it should
// be populated with a default value // be populated with a default value
const formData: GuestRegisterData = { const formData: GuestRegisterData = {
...@@ -464,15 +443,6 @@ test('Foreign country code gets set in form values', async () => { ...@@ -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 = { const formData: GuestRegisterData = {
firstName: 'Test', firstName: 'Test',
lastName: 'Test2', lastName: 'Test2',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment