@@ -46,9 +46,11 @@ describe('new engagement', () => {
46
46
cy . get ( '[data-cy=launch_button]' ) . should ( 'be.disabled' ) ;
47
47
48
48
cy . get ( '.pf-c-alert__action > .pf-c-button' ) . click ( ) ;
49
+ cy . wait ( 1500 ) ;
49
50
} ) ;
50
51
51
52
it ( 'Edit engagement summary' , ( ) => {
53
+
52
54
const format = 'YYYY-MM-DD' ;
53
55
const dayjs = require ( 'dayjs' ) ;
54
56
@@ -94,23 +96,24 @@ describe('new engagement', () => {
94
96
cy . get ( '[data-cy="points_of_contact"]' ) . click ( ) ;
95
97
96
98
cy . get ( '[data-cy="engagement_lead_name"]' )
97
- . clear ( )
98
- . type ( 'Test EL' )
99
+ . clear ( ) . type ( 'Test EL' )
99
100
. get ( '[data-cy=engagement_lead_email]' )
100
- . clear ( )
101
-
101
+ . clear ( ) . type ( '[email protected] ' )
102
102
. get ( '[data-cy=tech_lead_name]' )
103
- . clear ( )
104
- . type ( 'Test tech' )
103
+ . clear ( ) . type ( 'Test tech' )
105
104
. get ( '[data-cy=tech_lead_email]' )
106
- . clear ( )
107
-
105
+ . clear ( ) . type ( '[email protected] ' )
108
106
. get ( '[data-cy=customer_contact_name]' )
109
- . clear ( )
110
- . type ( 'Test Customer' )
107
+ . clear ( ) . type ( 'Test Customer' )
111
108
. get ( '[data-cy=customer_contact_email]' )
112
- . clear ( )
113
-
109
+ . clear ( ) . type ( '[email protected] ' ) ;
110
+
111
+ cy . get ( '[data-cy="engagement_lead_name"]' ) . should ( "have.value" , "Test EL" )
112
+ . get ( '[data-cy=engagement_lead_email]' ) . should ( "have.value" , '[email protected] ' )
113
+ . get ( '[data-cy=tech_lead_name]' ) . should ( "have.value" , 'Test tech' )
114
+ . get ( '[data-cy=tech_lead_email]' ) . should ( "have.value" , '[email protected] ' )
115
+ . get ( '[data-cy=customer_contact_name]' ) . should ( "have.value" , 'Test Customer' )
116
+ . get ( '[data-cy=customer_contact_email]' ) . should ( "have.value" , '[email protected] ' ) ;
114
117
115
118
cy . get ( '[data-cy=save_point_of_contact]' ) . click ( ) ;
116
119
@@ -122,7 +125,7 @@ describe('new engagement', () => {
122
125
} ) ;
123
126
124
127
it ( 'Edit hosting environment' , ( ) => {
125
- cy . get ( '[data-cy="hosting_env_button"]' ) . click ( { waitForAnimations : true , animationDistanceThreshold : 100 } ) ;
128
+ cy . get ( '[data-cy="hosting_env_button"]' ) . click ( { timeout : 7000 , waitForAnimations : true , animationDistanceThreshold : 100 } ) ;
126
129
127
130
cy . get ( '[data-cy=hosting_environment_name]' , { timeout : 7000 } )
128
131
. type ( 'Test Env 1' )
@@ -154,7 +157,8 @@ describe('new engagement', () => {
154
157
155
158
it ( 'Edit engagement users' , function ( ) {
156
159
157
- cy . get ( 'button[data-cy=edit_user_button]' ) . click ( ) ;
160
+ cy . wait ( 1000 ) ;
161
+ cy . get ( 'button[data-cy=edit_user_button]' , { timeout : 2000 } ) . click ( ) ;
158
162
cy . get ( 'button[data-cy=add_new_user]' ) . click ( ) ;
159
163
160
164
cy . get ( 'input[data-cy=input_user_email]' , { timeout : 2000 } )
0 commit comments