Skip to content

Commit fd3d6b3

Browse files
nutrinaGerald Iakobinyi-Pich
authored and
Gerald Iakobinyi-Pich
committed
Extending test for bounty creation flow
1 parent f169e2b commit fd3d6b3

File tree

1 file changed

+34
-22
lines changed

1 file changed

+34
-22
lines changed

cypress/integration/bounties/test_bounty_creation.js

+34-22
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ describe('Creating a new bounty', { tags: ['bounties'] }, () => {
1414
cy.logout();
1515
});
1616

17-
it('can navigate to the create bounty screen', () => {
17+
it.skip('can navigate to the create bounty screen', () => {
1818
cy.get('#dropdownProfile').trigger('mouseenter');
1919
cy.get('.gc-profile-submenu').contains('Create a Bounty').click();
2020

@@ -70,38 +70,50 @@ describe('Creating a new bounty', { tags: ['bounties'] }, () => {
7070
cy.contains('Next').click();
7171

7272
// Screen 3
73+
// cy.get('#payout_token').should('be.disabled'); TODO: this check does not work
74+
cy.get('#usd_amount').should('be.disabled');
75+
cy.get('#amount').should('be.disabled');
76+
cy.get('#new_bounty_peg_to_usd').should('be.disabled');
77+
cy.get('#bounty_owner').should('be.enabled');
78+
79+
cy.get('#payout_chain').find('.vs__search').click().type('ETH{enter}');
80+
// cy.get('#payout_token').should('be.enabled'); TODO: this check does not work
81+
82+
cy.get('#payout_token').find('.vs__search').click().type('ETH{enter}');
83+
84+
cy.get('#usd_amount').should('be.enabled');
85+
cy.get('#usd_amount').should('be.enabled');
86+
cy.get('#new_bounty_peg_to_usd').should('be.enabled');
87+
88+
cy.get('#usd_amount').clear().type('123.34');
7389

7490
cy.contains('Next').click();
7591

7692
// Screen 4
7793

94+
cy.contains('Standard').click();
95+
cy.contains('Approval Required').click();
96+
7897
cy.contains('Next').click();
7998

8099
// Screen 5
81100

82101
cy.contains('Confirm').click();
83102

84-
// cy.contains('ETH').click();
85-
86-
// cy.get('#issueURL').type('https://github.com/gitcoinco/web/issues/1');
87-
88-
// cy.contains('Front End').click();
89-
// cy.contains('Traditional').click();
90-
91-
// cy.contains('Approval Required').click();
92-
93-
// cy.get('#experience_level').find('.vs__search').click();
94-
// cy.contains('Beginner').click();
95-
// cy.get('#project_length').find('.vs__search').click();
96-
// cy.contains('Hours').click();
97-
// cy.get('#bounty_type').find('.vs__search').click();
98-
// cy.contains('Bug').click();
99-
100-
// cy.get('#terms').check();
101-
// cy.get('#termsPrivacy').check();
102-
103-
// cy.get('Button').contains('Fund Issue').click();
104-
103+
// Verify that the redirect happened
104+
cy.url().should('include', '/issue/');
105+
106+
// cy.contains('Time Left').parent().contains();
107+
cy.log('Opened', cy.contains('Opened'));
108+
cy.log('Opened', cy.contains('Opened').parent());
109+
// cy.log('Opened', cy.contains('Opened').parent().contains('Few Seconds Ago'));
110+
// cy.contains('Opened').parent().contains('Few Seconds Ago');
111+
// cy.get('#bounty_type').contains('Improvement');
112+
// cy.get('#admin_override_suspend_auto_approval').contains('Off');
113+
// cy.contains('Project Type').parent().contains('Traditional');
114+
// cy.contains('Time Commitment').parent().contains('Days');
115+
cy.get('#experience_level').contains('Beginner');
116+
// cy.contains('Permission').parent().contains('Approval');
105117
});
106118
});
107119

0 commit comments

Comments
 (0)