File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed
e2e/dashboard/feedback/ratings
lib/dashboard/feedback/ratings Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -98,6 +98,7 @@ describe('Create New Widget', () => {
9898 submitButtonText : "Submit Feedback" ,
9999 selectedMainColor : '#0166D6' ,
100100 selectedFontColor : '#0166D6' ,
101+ hasAggrementCheckbox : true ,
101102 hasPoweredByLogo : true ,
102103 thankYouMessageText : 'Thanks for your feedback!' ,
103104 successIconColor : '#0166D6'
Original file line number Diff line number Diff line change @@ -54,6 +54,7 @@ const verifyDemoPageElementsAndRate = ({
5454 submitButtonText,
5555 submitButtonColor,
5656 submitButtonFontColor,
57+ hasAggrementCheckbox = false ,
5758 hasPoweredByLogo = true ,
5859 thankYouMessageText,
5960 successIconColor
@@ -132,6 +133,12 @@ const verifyDemoPageElementsAndRate = ({
132133 cy . shouldNotExist ( demoPageElements . LOGO_IMAGE ) ;
133134 }
134135
136+ if ( hasAggrementCheckbox ) {
137+ cy . contains ( 'label' , 'I agree to the terms and conditions and privacy policy' )
138+ . find ( 'input[type="checkbox"]' )
139+ . click ( ) ;
140+ }
141+
135142 cy . clickElement ( demoPageElements . SUBMIT_BUTTON ) ;
136143
137144 // cy.window().then((win) => {
You can’t perform that action at this time.
0 commit comments