Rachael Booth
bcf64940c0
Remove new 2023 specific test
2 years ago
Rachael Booth
f239899eb5
Don't use helper in factory
2 years ago
Rachael Booth
6be1090f2f
Linting
2 years ago
Rachael Booth
bbc8cc82b5
Refactoring
2 years ago
Rachael Booth
99ce3f62f5
Update bu factory year specification
2 years ago
Rachael Booth
be4b3d985b
Add tests for bulk_upload.year_combo
2 years ago
Rachael Booth
d2964d73db
CLDC-3549: Ensure location page routing is updated when log is changed ( #2502 )
2 years ago
Rachael Booth
499e5ca6f7
Fix sale date changing 2024 -> 2023 test
2 years ago
Rachael Booth
ac64b03fbb
Don't use db unnecessarily in financial validations spec
2 years ago
Rachael Booth
206bc4cc42
fix
2 years ago
Rachael Booth
469f1574fb
More years in request spec
2 years ago
Rachael Booth
884f547b16
Fix linting
2 years ago
Rachael Booth
05e11c1a27
Fix field number row identifier
2 years ago
Rachael Booth
84e5e6adda
Refactor BU processor tests
2 years ago
Rachael Booth
1dc5ddedd8
Sales log to csv fix
2 years ago
Rachael Booth
1b18096a05
Fix 2023 lettings row parser spec
2 years ago
Rachael Booth
8a466b4ed3
Further fixes
2 years ago
Rachael Booth
a2ca03b227
Tweak bulk upload error row component tests for year changes
2 years ago
Rachael Booth
2052ea4649
Fix lint
2 years ago
Rachael Booth
7017793ebe
More use of bulk_upload.year_combo in request tests
2 years ago
Rachael Booth
39756f5a72
Remove pre 2023 test
2 years ago
Rachael Booth
0bb6810355
More work on bu validator specs - mostly sales
2 years ago
kosiakkatrina
e639c5c861
CLDC-3558 Display correct orgs data protection confirmation ( #2511 )
...
* Display correct orgs data protection confirmation
* Remove binding
2 years ago
Rachael Booth
ee22a41652
More fixes
2 years ago
Rachael Booth
0d389eaf8e
Refactor lettings validator_spec
2 years ago
Rachael Booth
10fb71e2e3
Use year combo function in bulk upload mailer tests
2 years ago
Rachael Booth
ae23749ae8
Update BU log creator specs for 2024
2 years ago
Rachael Booth
2ce8fe7d96
Use bulk_upload.year_combo for comparison in request tests to avoid year dependancy
2 years ago
Rachael Booth
ebb1d58dce
Set 2024 date in form_handler_spec to be during crossover period as needed
2 years ago
Rachael Booth
5db0480bfd
Update validator_spec
2 years ago
kosiakkatrina
8ce22d37c0
CLDC-3289 Avoid freezing time (part 3) ( #2445 )
...
* Refactor tests #1
* Update tasklist helper tests
* Update task list helper
* Fix test
* Rabase fixes
* Update model/validations tests
* Update som sales log specs
* Remove missing addresses csv tasks
* Update some tests for 2023 collection close
* More fixes
* Revert sales shared examples change
* Fix test
* Update test nemes, remove time stub
2 years ago
Arthur Campbell
3adfb29143
CLDC-3290 Update some test setup ( #2466 )
...
* test prof in test context
* time reduced from ~1.4 to 0.27
* time reduced from ~1.1 to 0.7
* time reduced from ~0.13 to 0.07
* add testprof env variables to spec helper
* reorder gems for linting copmlaint
* Remove test-prof gem
---------
Co-authored-by: Kat <katrina@kosiak.co.uk>
2 years ago
Rachael Booth
b5d38c5444
Remove one off reinfer_local_authority task
2 years ago
Rachael Booth
a8eb01e5aa
Temporarily disable test marked to delete at year end
2 years ago
Arthur Campbell
f423ec1cd5
CLDC-3505 further fixes to tests for year hard end ( #2493 )
...
* further fixes
* Fix date / crossover issues
* Try changing form end dates
* Revert "Try changing form end dates"
This reverts commit e027e29cf0 .
* Make use of :ignore-validation-errors trait
* Try with end dates in past
* Revert "Try with end dates in past"
This reverts commit 6b87938d70 .
---------
Co-authored-by: Rachael Booth <rachael.booth@softwire.com>
2 years ago
kosiakkatrina
42f89680e5
CLDC-3495 Reduce persisted models in tests ( #2507 )
...
* Remove legacy user from user factory
* Build instead of creating in some model tests
* Do not create a new DPO for orgs created within user factories
* Add original setup doc
* Update documentation with updated factories
* Fix up DSA creations
2 years ago
kosiakkatrina
ab4915c2aa
CLDC-2480 Allow deleting organisations ( #2459 )
...
* Add delete confirmation page
* Allow deleting organisation
* Add delete button
* Do not display deleted organisations as an option
* Update policy
* Display informative text and delete org resources
* lint
* Update organisation labels to show when deleted
* Refactor organisation label
* Update more labels
* Remove deleted orgs from schemes and autorize delete_confirmation
* Fix tests
2 years ago
kosiakkatrina
8dcd80e4f8
Strip scheme ID ( #2487 )
2 years ago
Rachael Booth
356d652db1
CLDC-3532: Make BU guidance back link depend on referrer ( #2482 )
...
* CLDC-3532: Make BU guidance back link depend on referrer
* Add tests for back_path
* Add guidance to homepage
* CLDC-3526: Update back_path
---------
Co-authored-by: Kat <katrina@kosiak.co.uk>
2 years ago
kosiakkatrina
905f869460
CLDC-2939 Link to organisations from user pages ( #2489 )
...
* Link to organisations from user pages
* Fix test
2 years ago
Arthur Campbell
0ecd82bf8f
more tests fixed ( #2491 )
2 years ago
kosiakkatrina
5947a2027a
CLDC-3496 Move period creation to log ( #2490 )
...
* Move period creation to log
* Allow adding rent periods to organisations
* Update more tests
2 years ago
Rachael Booth
22522fb907
CLDC-3265: Duplicate whitespace row fix to sales BU ( #2481 )
...
* CLDC-3265: Duplicate whitespace row fix to sales BU
* CLDC-3265: Fix bu test that accidentally had whitespace only row
2 years ago
kosiakkatrina
30b86f5a86
CLDC-3289 Avoid freezing time in tests (part 2) ( #2432 )
...
* Refactor tests #1
* Refactor model form tests
* Update tasklist helper tests
* Update task list helper
* Fix test
* Udate model/forms tests
* Update model/validations tests
* Update a few more model specs
* Update bulk request tests
* Update policy tests
* lint
* Refactor
* More fixes
* Rabase fixes
* Refactor
* lint
2 years ago
Arthur Campbell
8f65fd35fd
Cldc 3505 fix tests that will break on rollover ( #2485 )
...
* update factory completed traits using an after build hook so that trait does what it says regardless of start or sale date of log
* use completed trait rather than completed2024 trait from factories
skip validation on saving logs from previous years so that logs created too far in the past do not trigger validations
* remove sale and start dates from logs in tests where that should not be important
build rather than create to reduce db interactions
in order that the setup is complete, build the necessary user and organisation with ids
* fix a wide range of tests affected by the changes in log factories completed traits
2 years ago
kosiakkatrina
9dc4f0bbb6
CLDC-3523 Only count visible logs on CSV downloads page ( #2477 )
...
* Only count visible logs
* Refactor
* Update csv count for sales
2 years ago
kosiakkatrina
4c0c0d15eb
CLDC-3508 Search both datasets for UPRN ( #2479 )
...
* Search both datasets for UPRN
* Update presenter
* Update request stubs
2 years ago
Rachael Booth
0718c10847
CLDC-3522: Correct logic around BU address search and address not found errors ( #2476 )
...
* CLDC-3522: Correct logic around BU address search and address not found errors
* Fix lint errors
2 years ago
kosiakkatrina
4b218e759f
Update upcoming deadlines dates ( #2462 )
2 years ago
Arthur Campbell
e566ff09a0
refactor property validations specs to avoid breaking on collection year change ( #2478 )
2 years ago