Skip to content

Commit

Permalink
[Surrey] Continue button should not be visible when disabled
Browse files Browse the repository at this point in the history
Reported that users think the button is broken and don't read
the message above for an explanation of why they can't proceed

https://mysocietysupport.freshdesk.com/a/tickets/4768
  • Loading branch information
MorayMySoc authored and dracos committed Dec 4, 2024
1 parent fc44f0b commit 42fe86b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion .cypress/cypress/integration/surrey.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,13 @@ describe('Reporting not on a road', function() {
cy.pickCategory('Abandoned vehicles');
cy.contains('You cannot send Surrey County Council a report');
cy.get('#map_sidebar').scrollTo('bottom');
cy.get('.js-reporting-page--next:visible').should('be.disabled');
cy.get('.js-reporting-page--next').should('be.disabled');
cy.get('.js-reporting-page--next').should('not.be.visible');
cy.pickCategory('Flooding inside a building');
cy.contains('You cannot send Surrey County Council a report').should('not.be.visible');
cy.get('#map_sidebar').scrollTo('bottom');
cy.get('.js-reporting-page--next:visible').should('not.be.disabled');
cy.get('.js-reporting-page--next').should('be.visible');
});
});

Expand Down
2 changes: 1 addition & 1 deletion web/cobrands/fixmystreet/assets.js
Original file line number Diff line number Diff line change
Expand Up @@ -1556,7 +1556,7 @@ fixmystreet.message_controller = (function() {
}

function hide_continue_button() {
var cobrands_to_hide = ['hart'];
var cobrands_to_hide = ['hart', 'surrey'];
if (cobrands_to_hide.indexOf(fixmystreet.cobrand) !== -1) {
return 1;
}
Expand Down

0 comments on commit 42fe86b

Please sign in to comment.