-
-
Notifications
You must be signed in to change notification settings - Fork 236
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Lincs] Make asset_item_message for road assets an empty string
Was previously 'null', which was throwing an error in fixmystreet/assets.js->get_asset_pick_message().
- Loading branch information
1 parent
d6e5c39
commit 5b869f0
Showing
4 changed files
with
53 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
describe('Lincolnshire cobrand', function(){ | ||
describe('making a report as a new user', function() { | ||
before(function(){ | ||
cy.server(); | ||
cy.route('/report/new/ajax*').as('report-ajax'); | ||
|
||
cy.visit('http://lincolnshire.localhost:3001/report/new?longitude=-0.502566&latitude=52.656144'); | ||
cy.contains('Lincolnshire County Council'); | ||
|
||
cy.wait('@report-ajax'); | ||
}); | ||
|
||
it('does not display extra message when selecting a "road" category', function(){ | ||
cy.pickCategory('Damaged/missing cats eye'); | ||
cy.get( | ||
'#category_meta_message_Damagedmissingcatseye' | ||
).should('have.text', ''); | ||
}); | ||
|
||
it('clicks through to photo section', function(){ | ||
cy.nextPageReporting(); | ||
cy.contains('Drag photos here').should('be.visible'); | ||
}); | ||
|
||
it('clicks through to public details page', function(){ | ||
cy.nextPageReporting(); | ||
cy.contains('Public details').should('be.visible'); | ||
}); | ||
|
||
it('cannot click through to next page without details', function(){ | ||
cy.nextPageReporting(); | ||
cy.get('#form_title-error').should('be.visible'); | ||
}); | ||
|
||
it('submits public details form with sufficient details', function(){ | ||
cy.get('#form_title').type('Missing cat\'s eye'); | ||
cy.get('#form_detail').type('This cat must be a pirate'); | ||
cy.nextPageReporting(); | ||
cy.get('#form_name').should('be.visible'); | ||
}); | ||
|
||
it('submits personal details form with sufficient details', function(){ | ||
cy.get('#form_name').type('Kitty Wake'); | ||
cy.get('#form_username_register').type('[email protected]'); | ||
cy.get('#mapForm').submit(); | ||
cy.contains('Nearly done! Now check your email…').should('be.visible'); | ||
}); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,6 +21,7 @@ BEGIN { | |
highwaysengland | ||
hounslow | ||
isleofwight | ||
lincolnshire | ||
northamptonshire | ||
oxfordshire | ||
peterborough | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters