Skip to content
Snippets Groups Projects

GREG-264: Remember gender when clicking back in wizard

Merged Tore.Brede requested to merge GREG-264_remember_gender_when_click_back into master
4 files
+ 102
47
Compare changes
  • Side-by-side
  • Inline
Files
4
@@ -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',
Loading