File tree Expand file tree Collapse file tree 1 file changed +0
-17
lines changed Expand file tree Collapse file tree 1 file changed +0
-17
lines changed Original file line number Diff line number Diff line change 11import { When } from '@cucumber/cucumber' ;
22import { getValue , getElement , getValueWait , getConditionWait } from './transformers' ;
3- import { getValidation } from '@qavajs/validation' ;
43
54/**
65 * Wait for element condition
@@ -142,19 +141,3 @@ When(
142141 await wait ( getValueFn , expectedValue , config . browser . timeout . page ) ;
143142 }
144143) ;
145-
146- /**
147- * Verify that text of an alert meets expectation
148- * @param {string } validationType - validation
149- * @param {string } value - expected text value
150- * @example I expect text of alert does not contain 'coffee'
151- */
152- When ( 'I wait until text of alert {playwrightValidation} {string}' , async function ( validationType : string , expectedValue : string ) {
153- let alertText ;
154- page . once ( 'dialog' , async ( dialog ) => {
155- alertText = dialog . message ( ) ;
156- } ) ;
157- const validation = getValidation ( validationType ) ;
158- validation ( alertText , expectedValue ) ;
159- }
160- ) ;
You can’t perform that action at this time.
0 commit comments