Skip to content

Commit

Permalink
fixup! [Bexley][WW] Display notice for discounted first GGW bin price…
Browse files Browse the repository at this point in the history
… when paying by DD.
  • Loading branch information
nephila-nacrea committed Feb 20, 2025
1 parent 6e0997b commit 90f752b
Showing 1 changed file with 22 additions and 4 deletions.
26 changes: 22 additions & 4 deletions t/app/controller/waste_bexley_garden.t
Original file line number Diff line number Diff line change
Expand Up @@ -288,6 +288,24 @@ FixMyStreet::override_config {
name => 'Test McTest',
email => '[email protected]'
} });
$mech->text_contains(
'Please provide your bank account information so we can set up your Direct Debit mandate',
'On DD details form',
);

my %dd_fields = (
name_title => 'Mr',
first_name => 'Test',
surname => 'McTest',
address1 => '1 Test Street',
address2 => 'Test Area',
post_code => 'DA1 1AA',
account_holder => 'Test McTest',
account_number => '12345678',
sort_code => '12-34-56'
);
$mech->submit_form_ok( { with_fields => \%dd_fields } );

$mech->content_contains('Test McTest');
$mech->content_contains('£' . $test->{pounds_cost});
};
Expand Down Expand Up @@ -496,7 +514,7 @@ FixMyStreet::override_config {
$mech->content_contains('Please review the information you’ve provided before you submit your garden subscription');

$mech->content_contains('Test McTest');
$mech->content_contains('£75.00');
$mech->content_contains('£70.00');
$mech->submit_form_ok({ with_fields => { tandc => 1 } });

my $report = FixMyStreet::DB->resultset("Problem")->order_by('-id')->first;
Expand Down Expand Up @@ -528,7 +546,7 @@ FixMyStreet::override_config {
atTheEnd => 'Switch to further notice',
paymentDayInMonth => 28,
paymentMonthInYear => 1,
amount => '75.00',
amount => '70.00',
start => '2023-01-23T17:00:00.000',
additionalReference => "BEX-$id-10001",
}, 'Contract parameters are correct';
Expand Down Expand Up @@ -586,7 +604,7 @@ FixMyStreet::override_config {
$mech->content_contains('Please review the information you’ve provided before you submit your garden subscription');

$mech->content_contains('Test McTest');
$mech->content_contains('£75.00');
$mech->content_contains('£70.00');
$mech->submit_form_ok({ with_fields => { tandc => 1 } });

my $report = FixMyStreet::DB->resultset("Problem")->order_by('-id')->first;
Expand All @@ -604,7 +622,7 @@ FixMyStreet::override_config {
atTheEnd => 'Switch to further notice',
paymentDayInMonth => 28,
paymentMonthInYear => 1,
amount => '75.00',
amount => '70.00',
start => '2023-01-23T17:00:00.000',
additionalReference => "BEX-$id-10001"
}, 'Contract parameters are correct';
Expand Down

0 comments on commit 90f752b

Please sign in to comment.