@@ -14,7 +14,7 @@ describe('Creating a new bounty', { tags: ['bounties'] }, () => {
14
14
cy . logout ( ) ;
15
15
} ) ;
16
16
17
- it ( 'can navigate to the create bounty screen' , ( ) => {
17
+ it . skip ( 'can navigate to the create bounty screen' , ( ) => {
18
18
cy . get ( '#dropdownProfile' ) . trigger ( 'mouseenter' ) ;
19
19
cy . get ( '.gc-profile-submenu' ) . contains ( 'Create a Bounty' ) . click ( ) ;
20
20
@@ -70,38 +70,50 @@ describe('Creating a new bounty', { tags: ['bounties'] }, () => {
70
70
cy . contains ( 'Next' ) . click ( ) ;
71
71
72
72
// 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' ) ;
73
89
74
90
cy . contains ( 'Next' ) . click ( ) ;
75
91
76
92
// Screen 4
77
93
94
+ cy . contains ( 'Standard' ) . click ( ) ;
95
+ cy . contains ( 'Approval Required' ) . click ( ) ;
96
+
78
97
cy . contains ( 'Next' ) . click ( ) ;
79
98
80
99
// Screen 5
81
100
82
101
cy . contains ( 'Confirm' ) . click ( ) ;
83
102
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');
105
117
} ) ;
106
118
} ) ;
107
119
0 commit comments