microsoft / EasyRepro

Automated UI testing API for Dynamics 365
MIT License
513 stars 286 forks source link

[BUG] <Click subgrid create new button opens in a new tab behind existing> #1255

Open simonjpa1 opened 2 years ago

simonjpa1 commented 2 years ago

Bug Report

Issues should only be created for items related to covered functionality.

Not covered functionality, feature requests, and questions should use the Feature Request or Question templates.

EasyRepro Version Nuget: 9.2.21111.116-RW2-Preview

UCI or Classic Web

Online or On Premise

Browser

Describe the bug
When clicking a create button on a subgrid the create form is opened in a new tab behind the main tab.

image

Code to reproduce

           _xrmApp.Entity.SelectTab("TabName");
           _xrmApp.ThinkTime(2000);
           _xrmApp.Entity.SubGrid.ClickCommand("SubGrid", "CreateButtonName");

Expected behavior
Open a create form in the same tab.

Additional context

Shakevg commented 2 years ago

@simonjpa1 Could you stop the test before ClickCommand and click manually? Is it the same behavior?

simonjpa1 commented 2 years ago

@simonjpa1 Could you stop the test before ClickCommand and click manually? Is it the same behavior?

No if I do that it opens in the current fan as it should.

simonjpa1 commented 2 years ago

I did some further testing. I appears that this only an issue if I use the _xrmApp.Entity.Save() So a workaround for this is to use _xrmApp.CommandBar.ClickCommand("Save") instead to click the save button.