microsoft / PowerApps-TestEngine

MIT License
107 stars 30 forks source link

[Feature]: Model Driven Application - Consent Dialog #353

Open Grant-Archibald-MS opened 4 months ago

Grant-Archibald-MS commented 4 months ago

Is your feature request related to a problem? Please describe.

When testing a Model Driven Application custom page connections used by the custom page may require consent from the user before the custom page content is shown.

Describe the solution you'd like

Provide Power Fx functions that can be used to either:

Describe alternatives you've considered

No response

Additional context?

No response

Grant-Archibald-MS commented 4 months ago

Implemented as part of Support Model Driven Application.

See sample test for CoE Starter Kit which uses format: TestEngine.ConsentDialog(Table({Text: "Center of Excellence Setup Wizard"}))

Assumes that issue Create Connection has been implemented to create any connection id required for the connection references

Grant-Archibald-MS commented 2 weeks ago

Added example of Consent Dialog as part of the "no cliffs" extensiblity example https://github.com/Grant-Archibald-MS/powerfuldev-testing/blob/main/examples/understanding-no-cliffs-extensibility-model.md