applyTapExpectDialog method

Future<void> applyTapExpectDialog(
  1. dynamic selectorTap,
  2. AFScreenID dialogScreenId,
  3. AFTestScreenExecuteDelegate onDialog
)

Tap on the specified widget, then expect a dialog which you can interact with via the onDialog parameter.

Implementation

Future<void> applyTapExpectDialog(dynamic selectorTap, final AFScreenID dialogScreenId, AFTestScreenExecuteDelegate onDialog) async {
  await applyTap(selectorTap);
  await pauseForRender();

  await this.underScreen(dialogScreenId, () async {
    await onDialog(this);
  });
}