Function showRequestUserAction

  • Experimental

    Shows a message, and waits for a condition to resolve before proceeding Automatically. It renders a dialog with a text message After certain action are done by user, callback function should be resolved, and helper will finish as well. If one button is passed to the helper it will always be disabled and should have a text that tells the user that the UI is waiting for his action.

    Parameters

    • ctx: Context

      The context to render to

    • options: ShowRequestUserActionOptions

      Configuration for the dialog

    Returns Promise<any>

    Example

    await showRequestUserAction(ctx, {
    title: 'My step',
    description: 'Description',
    text: 'Something went wrong, navigate to the Shopping Cart page to proceed.',
    successCondition: () => page.waitForSelector('#sc-active-cart', {timeout: 0}),
    });

Generated using TypeDoc