Wait for success modal to close
This commit is contained in:
+3
-4
@@ -313,12 +313,11 @@ export const FIRMS: Firm[] = [
|
|||||||
{ action: 'click', selector: '.woocommerce-terms-and-conditions-wrapper+p input', frame: '#woocommerceModal iframe', label: 'Agree to refund policy' },
|
{ action: 'click', selector: '.woocommerce-terms-and-conditions-wrapper+p input', frame: '#woocommerceModal iframe', label: 'Agree to refund policy' },
|
||||||
{ action: 'click', selector: 'button#place_order', frame: '#woocommerceModal iframe', label: 'Place order' },
|
{ action: 'click', selector: 'button#place_order', frame: '#woocommerceModal iframe', label: 'Place order' },
|
||||||
|
|
||||||
|
{ action: 'waitFor', selector: '#woocommerceModal', absent: true, hidden: true, timeoutSeconds: 30, label: 'Wait for the modal to close' },
|
||||||
|
|
||||||
|
|
||||||
{ action: 'waitFor', selector: 'div#successModal', label: 'Wait to click the success modal' },
|
{ action: 'waitFor', selector: 'div#successModal', label: 'Wait to click the success modal' },
|
||||||
{ action: 'click', selector: 'div#successModal button', label: 'Close the success modal' },
|
{ action: 'click', selector: 'div#successModal button', label: 'Close the success modal' },
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
]},
|
]},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user