Skip to content

Commit

Permalink
Test site_address_is_company_address field
Browse files Browse the repository at this point in the history
Also removes two investment project fixtures in favour of fakers.
  • Loading branch information
oliverjwroberts committed Jan 28, 2025
1 parent 0108667 commit 4f0bc76
Show file tree
Hide file tree
Showing 10 changed files with 531 additions and 500 deletions.
16 changes: 2 additions & 14 deletions test/api-schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -7506,7 +7506,7 @@
"type": "string",
"nullable": true
},
"site_decided": {
"site_address_is_company_address": {
"type": "boolean",
"nullable": true
},
Expand Down Expand Up @@ -7547,12 +7547,6 @@
"type": "string"
}
},
"actual_uk_regions": {
"type": "array",
"items": {
"type": "string"
}
},
"delivery_partners": {
"type": "array",
"items": {
Expand Down Expand Up @@ -9526,13 +9520,7 @@
"nullable": true
},
"hiring": {
"enum": [
"1-5",
"6-50",
"51-100",
"101+",
"NO_PLANS_TO_HIRE_YET"
],
"enum": ["1-5", "6-50", "51-100", "101+", "NO_PLANS_TO_HIRE_YET"],
"type": "string"
},
"spend": {
Expand Down
4 changes: 2 additions & 2 deletions test/functional/cypress/fakers/investment-projects.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ const investmentProjectFaker = (overrides = {}) => ({
sector_classification_gva_multiplier: 'labour',
id: faker.string.uuid(),
},
specific_programmes: [],
...overrides,
})

Expand Down Expand Up @@ -120,11 +121,10 @@ const investmentProjectEmptyFaker = (overrides = {}) =>
non_fdi_r_and_d_budget: null,
new_tech_to_uk: null,
export_revenue: null,
site_decided: null,
site_address_is_company_address: null,
address_1: null,
address_town: null,
address_postcode: null,
actual_uk_regions: null,
delivery_partners: null,
actual_land_date: null,
specific_programmes: null,
Expand Down
2 changes: 0 additions & 2 deletions test/functional/cypress/fixtures/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,12 +53,10 @@ module.exports = {
investmentWithLink: require('./investment/investment-with-link.json'),
newHotelFdi: require('./investment/new-hotel-fdi'),
stageWon: require('./investment/investment-stage-won.json'),
investmentWithNoExistingRequirements: require('./investment/investment-no-existing-requirements.json'),
investmentWithNoGlobalAccountManager: require('./investment/investment-no-global-account-manager.json'),
fdiInvestmentWithNoFDIType: require('./investment/investment-fdi-has-no-fdi-type.json'),
investmentWithValue: require('./investment/capital-investment-has-existing-value.json'),
investmentWithAlternateValue: require('./investment/investment-has-existing-value-alternate.json'),
investmentWithRequirements: require('./investment/investment-has-existing-requirements.json'),
investmentWithDetails: require('./investment/investment-has-existing-details.json'),
investmentWithoutEvaluation: require('./investment/investment-evaluation-not-set.json'),
investmentWithEvaluation: require('./investment/investment-evaluation-complete.json'),
Expand Down

This file was deleted.

Loading

0 comments on commit 4f0bc76

Please sign in to comment.