Skip to content

Commit

Permalink
Remove redundant test code.
Browse files Browse the repository at this point in the history
  • Loading branch information
knadh committed Nov 9, 2022
1 parent d613bb5 commit c2d41e0
Showing 1 changed file with 0 additions and 26 deletions.
26 changes: 0 additions & 26 deletions frontend/cypress/e2e/forms.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand All @@ -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');
// });
});

});

0 comments on commit c2d41e0

Please sign in to comment.