Skip to content

Commit

Permalink
added cypress test to view bounty modal
Browse files Browse the repository at this point in the history
  • Loading branch information
jordan-ae committed Mar 15, 2024
1 parent 9c79733 commit 4a7d648
Showing 1 changed file with 54 additions and 0 deletions.
54 changes: 54 additions & 0 deletions cypress/e2e/14_viewBountyModal.cy.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
describe('Edit Bounty From Modal', () => {
const assignee = 'carol';
const bounty: Cypress.Bounty = {
title: 'My new Bounty',
category: 'Web development',
coding_language: ['Typescript', 'Javascript', 'Lightning'],
description: 'This is available',
amount: '123',
assign: assignee,
deliverables: 'We are good to go man',
tribe: '',
estimate_session_length: 'Less than 3 hour',
estimate_completion_date: '09/09/2024'
};

it('Can edit a bounty from modal', () => {
const activeUser = 'alice';
cy.login(activeUser);
cy.wait(1000);

cy.create_bounty(bounty);
cy.wait(1000);

cy.contains(activeUser);
cy.wait(1000);

cy.contains(bounty.title);
cy.wait(1000);

cy.contains(bounty.assign);
cy.wait(1000);

cy.contains(bounty.amount);
cy.wait(1000);

cy.contains(bounty.estimate_completion_date);
cy.wait(1000);

cy.contains(bounty.deliverables);
cy.wait(1000);

cy.contains(bounty.description);
cy.wait(1000);

cy.contains('Mark as Paid');
cy.wait(1000);

cy.contains('Copy Link');
cy.wait(1000);

cy.contains('Share to Twitter');
cy.wait(1000);
});
});

0 comments on commit 4a7d648

Please sign in to comment.