Skip to content

Commit

Permalink
test(E2E): revert more changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Betree committed Jun 21, 2023
1 parent b46ed43 commit e3bd86e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@ describe('Contribution Flow: Create profile', () => {
it('Personal profile', () => {
// Create account is the default view when unauthenticated
cy.visit('/apex/donate');
// Wait for query params to be loaded
cy.url().should('contain', 'interval=oneTime&amount=20');
cy.wait(250);
// Skip the step details
cy.get('button[data-cy="cf-next-step"]').click();

Expand Down
8 changes: 3 additions & 5 deletions test/cypress/integration/11-contributionFlow.signIn.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,8 @@ describe('Contribution Flow: Sign In', () => {
cy.createCollective({ type: 'USER', email: validUserEmail });
});

beforeEach(() => {
cy.visit('/apex/donate');
cy.url().should('contain', 'interval=oneTime&amount=20');
});

it("Doesn't allow to submit if email is invalid", () => {
cy.visit('/apex/donate');
cy.get('button[data-cy="cf-next-step"]').click();

cy.getByDataCy('cf-profile-signin-btn').click();
Expand All @@ -24,6 +20,7 @@ describe('Contribution Flow: Sign In', () => {
});

it("Shows a warning when email doesn't exist", () => {
cy.visit('/apex/donate');
cy.get('button[data-cy="cf-next-step"]').click();

cy.getByDataCy('cf-profile-signin-btn').click();
Expand All @@ -36,6 +33,7 @@ describe('Contribution Flow: Sign In', () => {
});

it('Works if given a valid email', () => {
cy.visit('/apex/donate');
cy.get('button[data-cy="cf-next-step"]').click();

cy.getByDataCy('cf-profile-signin-btn').click();
Expand Down

0 comments on commit e3bd86e

Please sign in to comment.