From c2d41e0671d0699adbffae659e0550a706dc1e1a Mon Sep 17 00:00:00 2001 From: Kailash Nadh Date: Wed, 9 Nov 2022 23:30:13 +0530 Subject: [PATCH] Remove redundant test code. --- frontend/cypress/e2e/forms.cy.js | 26 -------------------------- 1 file changed, 26 deletions(-) diff --git a/frontend/cypress/e2e/forms.cy.js b/frontend/cypress/e2e/forms.cy.js index cd593a5..1d9a486 100644 --- a/frontend/cypress/e2e/forms.cy.js +++ b/frontend/cypress/e2e/forms.cy.js @@ -118,8 +118,6 @@ describe('Forms', () => { }); }); - // cy.wait(500); - // Change name and unsubscribe from one list. cy.get('input[name=name]').clear().type('new-name'); cy.get('ul.lists input:first').click(); @@ -131,30 +129,6 @@ describe('Forms', () => { expect(data.results[1].lists.find((s) => s.id === 2).subscription_status).to.equal('unsubscribed'); expect(data.results[1].lists.find((s) => s.id === 3).subscription_status).to.equal('unconfirmed'); }); - - // // Unsubscribe from one list. - // cy.get('button').click(); - // cy.request('GET', `${apiUrl}/api/subscribers`).then((response) => { - // const { data } = response.body; - // expect(data.results[0].lists.find((s) => s.id === 2).subscription_status).to.equal('unsubscribed'); - // expect(data.results[0].lists.find((s) => s.id === 3).subscription_status).to.equal('unconfirmed'); - // }); - - // // Go back. - // cy.url().then((u) => { - // cy.loginAndVisit(u); - // }); - - // // Unsubscribe from all. - // cy.get('#privacy-blocklist').click(); - // cy.get('button').click(); - - // cy.request('GET', `${apiUrl}/api/subscribers`).then((response) => { - // const { data } = response.body; - // expect(data.results[0].status).to.equal('blocklisted'); - // expect(data.results[0].lists.find((s) => s.id === 2).subscription_status).to.equal('unsubscribed'); - // expect(data.results[0].lists.find((s) => s.id === 3).subscription_status).to.equal('unsubscribed'); - // }); }); });