Declined
Last Updated: 18 Sep 2020 12:22 by ADMIN
Lokesh
Created on: 14 Sep 2020 11:52
Type: Bug Report
0
Test Studio unable to capture enable or disable state of an element build on material design

Test Studio unable to capture enable or disable state of an element build on material design. Due to which i have to create 2 elements to check enable and disable state. This will increase my element repository drastically. Please provide some optimize solution.


<input _ngcontent-osd-c251="" matinput="" type="text" formcontrolname="dateLastModified" readonly="true" class="mat-input-element mat-form-field-autofill-control ng-tns-c124-150 cdk-text-field-autofill-monitored ng-untouched ng-pristine ng-valid" ng-reflect-type="text" ng-reflect-readonly="" ng-reflect-name="dateLastModified" id="mat-input-8" aria-invalid="false" aria-required="false">
</input>

1 comment
ADMIN
Plamen Mitrev
Posted on: 18 Sep 2020 12:22

Hello Lokesh,

I explored the provided details and it seems that the state of this input field is set by the "readonly" attribute. The enable/disable verification step checks for the "disabled" attribute, but this <input> element does not have it. That is why the element is considered as enabled during test execution.

In this case, you can use the advanced verification to check the value of specific attribute of the target element. You can build you own advanced verification step from the Recorder toolbar and make the necessary verification for the "readonly" attribute. Make sure that any dynamically changing attributes, like "readonly", are not included in your find expression.

The verification step for enabled/disabled element works as it is designed to and this scenario with "readonly" attribute should be handled with the above mentioned approach. I will proceed to mark this bug report as declined. Please do not hesitate to contact us again here or in a private ticket, if you have any concerns or follow up questions.

Thank you for your feedback and I hope the suggested approach will help you automate your test case.

Regards,
Plamen Mitrev
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.