-
-
Notifications
You must be signed in to change notification settings - Fork 241
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Cypress] Fix a couple of flaky tests.
Await a result, and remove a test that is no longer needed (as FMS does now show duplicates in Pro areas).
- Loading branch information
Showing
2 changed files
with
1 addition
and
17 deletions.
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
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 |
---|---|---|
@@ -1,21 +1,4 @@ | ||
describe('Duplicate tests', function() { | ||
it('does not try and fetch duplicates which will not get shown', function() { | ||
cy.server(); | ||
cy.route('/report/new/ajax*').as('report-ajax'); | ||
cy.request({ | ||
method: 'POST', | ||
url: '/auth?r=/', | ||
form: true, | ||
body: { username: '[email protected]', password_sign_in: 'password' } | ||
}); | ||
cy.visit('http://fixmystreet.localhost:3001/report/1'); | ||
cy.contains('Report another problem here').click(); | ||
cy.wait('@report-ajax'); | ||
cy.pickCategory('Potholes'); | ||
cy.nextPageReporting(); | ||
cy.get('div.dropzone').should('be.visible'); | ||
}); | ||
|
||
it('has a separate duplicate suggestions step when needed', function() { | ||
cy.server(); | ||
cy.route('/report/new/ajax*').as('report-ajax'); | ||
|