forked from stakwork/sphinx-tribes-frontend
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request stakwork#400 from saithsab877/Cypress-test-Create-…
…org-bounty Added Cypress Test For Create org bounty
- Loading branch information
Showing
2 changed files
with
43 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
describe('User creates a bounty attached to an organization', () => { | ||
const org: Cypress.Organization = { | ||
loggedInAs: 'alice', | ||
name: 'Alice Organization', | ||
description: 'An organization focused on amazing projects.', | ||
website: 'https://amazing.org', | ||
github: 'https://github.com/amazing' | ||
}; | ||
|
||
const bounty: Cypress.Bounty = { | ||
organization: 'Alice Organization', | ||
title: 'Alice Bounty', | ||
category: 'Web development', | ||
coding_language: ['Typescript', 'Javascript', 'Lightning'], | ||
description: 'This is available', | ||
amount: '123', | ||
tribe: 'Amazing Org Tribe', | ||
estimate_session_length: 'Less than 3 hour', | ||
estimate_completion_date: '09/09/2024', | ||
deliverables: 'We are good to go man', | ||
assign: '' | ||
}; | ||
|
||
beforeEach(() => { | ||
cy.login(org.loggedInAs); | ||
cy.wait(1000); | ||
cy.create_org(org); | ||
cy.wait(1000); | ||
}); | ||
|
||
it('should verify the bounty tile has the org label and is clickable', () => { | ||
cy.create_bounty(bounty); | ||
cy.wait(1000); | ||
|
||
cy.contains(bounty.title); | ||
cy.wait(1000); | ||
|
||
cy.contains(org.name).click(); | ||
|
||
cy.logout(org.loggedInAs); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters