jeudi 17 septembre 2020

Is there a way in WDIO tests to make date and time component select default date and time irrespective of locale and current time?

I am trying to run generate snapshots from WDIOs. The condition is to render default date and time component of my project. However, the wdio generates current date and time each time I generate it and hence fails with mismatch tolerance.

I tried setting the value by Page.appointmentDateField.setValue('01/06/2001'), however, since the date is hardcoded here, it fails for 'de' and other locales which uses 'xx.xx.xxxx' instead of '/'.

Is there any way to fix this?

Aucun commentaire:

Enregistrer un commentaire