microsoft / EasyRepro

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

[BUG] <Save Validation not working> #1297

Open ralveshsdyn opened 2 years ago

ralveshsdyn 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

UCI or Classic Web

Online or On Premise

Browser

Describe the bug
I'm using a sample test to create an account, everything works fine but if the test dosen't input any name in the account form it pass successfully instead of failing. The account is not being created because it needs a name to be saved so the test should be failling and it's not. Both using UCI sample and UCI azure, both running on local machine or with azure pipelines.

Special formatting / display

Code to reproduce

    xrmApp.OnlineLogin.Login(_xrmUri, _username, _password, _mfaSecretKey);

                xrmApp.Navigation.OpenApp(UCIAppName.EasyReproTest);

                xrmApp.Navigation.OpenSubArea("AreaXPTO1", "AccountsXPTO");

                xrmApp.CommandBar.ClickCommand("New");

                xrmApp.Entity.Save();

Expected behavior
I expect the test to fail since the account is being saved without any name.

Screenshots

Test summary: image

Account not being created when there is no name: image

Additional context
Should I be doing any kind of assert in this case? Maybe try and get the record to see if it was actually created? first time using this library.