File tree Expand file tree Collapse file tree
packages/functional-tests/tests/cms Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -56,7 +56,7 @@ test.describe('severity-1 #smoke', () => {
5656 await expect ( button ) . toHaveCSS ( '--cta-bg' , buttonColor ) ;
5757 await expect ( button ) . toHaveCSS ( '--cta-border' , buttonColor ) ;
5858 await expect ( button ) . toHaveCSS ( '--cta-active' , buttonColor ) ;
59- await expect ( button ) . toHaveCSS ( '--cta-disabled' , ` ${ buttonColor } 60` ) ;
59+ await expect ( button ) . toHaveCSS ( '--cta-disabled' , buttonColor ) ;
6060 }
6161
6262 test . beforeAll ( async ( { target } ) => {
Original file line number Diff line number Diff line change @@ -55,7 +55,7 @@ test.describe('severity-1 #smoke', () => {
5555 await expect ( button ) . toHaveCSS ( '--cta-bg' , buttonColor ) ;
5656 await expect ( button ) . toHaveCSS ( '--cta-border' , buttonColor ) ;
5757 await expect ( button ) . toHaveCSS ( '--cta-active' , buttonColor ) ;
58- await expect ( button ) . toHaveCSS ( '--cta-disabled' , ` ${ buttonColor } 60` ) ;
58+ await expect ( button ) . toHaveCSS ( '--cta-disabled' , buttonColor ) ;
5959 }
6060
6161 test . beforeAll ( async ( { target } ) => {
@@ -160,11 +160,16 @@ test.describe('severity-1 #smoke', () => {
160160 buttonColor : '#4845D2' ,
161161 buttonText : 'Continue' ,
162162 } ) ;
163- await signin . passwordTextbox . fill ( credentials . password ) ;
164163 submitButton = page . getByRole ( 'button' , {
165164 name : 'Continue' ,
166165 exact : true ,
167166 } ) ;
167+ // expect button to be disabled until password fields are filled
168+ await expect ( submitButton ) . toBeDisabled ( ) ;
169+ await expect ( submitButton ) . toHaveCSS ( 'opacity' , '0.5' ) ;
170+ await signin . passwordTextbox . fill ( credentials . password ) ;
171+ await expect ( submitButton ) . toBeEnabled ( ) ;
172+ await expect ( submitButton ) . toHaveCSS ( 'opacity' , '1' ) ;
168173 await submitButton . click ( ) ;
169174
170175 await assertCmsCustomization ( page , {
You can’t perform that action at this time.
0 commit comments