aboutsummaryrefslogtreecommitdiffstats
path: root/.cypress/cypress/integration/regressions.js
diff options
context:
space:
mode:
Diffstat (limited to '.cypress/cypress/integration/regressions.js')
-rw-r--r--.cypress/cypress/integration/regressions.js34
1 files changed, 0 insertions, 34 deletions
diff --git a/.cypress/cypress/integration/regressions.js b/.cypress/cypress/integration/regressions.js
index 73f6900a6..f9fedc3eb 100644
--- a/.cypress/cypress/integration/regressions.js
+++ b/.cypress/cypress/integration/regressions.js
@@ -92,38 +92,4 @@ describe('Regression tests', function() {
cy.get('#form_start_date').should('have.value', '2019-01-01');
});
- it('hides everything when duplicate suggestions are shown', function() {
- cy.server();
- cy.route('/report/new/ajax*').as('report-ajax');
- cy.visit('http://borsetshire.localhost:3001/_test/setup/regression-duplicate-hide'); // Server-side setup
- cy.visit('http://borsetshire.localhost:3001/report/1');
- cy.contains('Report another problem here').click();
- cy.wait('@report-ajax');
- cy.get('[id=category_group]').select('Licensing');
- cy.get('[id=subcategory_Licensing]').select('Skips');
- cy.get('.extra-category-questions').should('not.be.visible');
- cy.visit('http://borsetshire.localhost:3001/_test/teardown/regression-duplicate-hide');
- });
-
- it('does not show duplicate suggestions when signing in during reporting', function() {
- cy.server();
- cy.route('/report/new/ajax*').as('report-ajax');
- cy.route('/around/nearby*').as('nearby-ajax');
- cy.visit('http://borsetshire.localhost:3001/report/1');
- cy.contains('Report another problem here').click();
- cy.wait('@report-ajax');
- cy.get('[id=category_group]').select('Potholes');
- cy.wait('@nearby-ajax');
- cy.get('.js-hide-duplicate-suggestions:first').should('be.visible').click();
- cy.get('[name=title]').type('Title');
- cy.get('[name=detail]').type('Detail');
- cy.get('.js-new-report-user-show').click();
- cy.get('.js-new-report-show-sign-in').should('be.visible').click();
- cy.get('#form_username_sign_in').type('user@example.org');
- cy.get('[name=password_sign_in]').type('password');
- cy.get('[name=password_sign_in]').parents('form').submit();
- cy.get('#map_sidebar').should('contain', 'check and confirm your details');
- cy.get('#js-duplicate-reports').should('not.exist');
- });
-
});