aboutsummaryrefslogtreecommitdiffstats
path: root/.cypress/cypress/integration/duplicates.js
diff options
context:
space:
mode:
Diffstat (limited to '.cypress/cypress/integration/duplicates.js')
-rw-r--r--.cypress/cypress/integration/duplicates.js12
1 files changed, 6 insertions, 6 deletions
diff --git a/.cypress/cypress/integration/duplicates.js b/.cypress/cypress/integration/duplicates.js
index c0e0d8004..c014e0593 100644
--- a/.cypress/cypress/integration/duplicates.js
+++ b/.cypress/cypress/integration/duplicates.js
@@ -51,12 +51,12 @@ describe('Duplicate tests', function() {
});
it('lets an inspector see duplicate reports coming from /reports', function() {
- cy.request({
- method: 'POST',
- url: 'http://borsetshire.localhost:3001/auth?r=/my',
- form: true,
- body: { username: 'admin@example.org', password_sign_in: 'password' }
- });
+ cy.visit('http://borsetshire.localhost:3001/auth');
+ cy.get('[name=username]').type('admin@example.org');
+ cy.contains('Sign in with a password').click();
+ cy.get('[name=password_sign_in]').type('password');
+ cy.get('[name=sign_in_by_password]').last().click();
+ cy.url().should('include', '/my');
cy.visit('http://borsetshire.localhost:3001/reports');
cy.get('[href$="/report/1"]:last').click();
cy.get('#report_inspect_form #state').select('Duplicate');