Message from JavaScript discussions

August 2018

— But I need to define a step that goes like this:
When a "<time>" reminder is set
|time |
|15 Minutes |
|1 hour |
|3 hours |
|Tomorrow |

Message permanent page


The step defintion is:

this.When(/^a "([^"]*)" reminder is set$/, function (time) {

— The thing is, REMINDER OPTIONS should be the same as “<time>”

— The question would be, how to loop through it

— Ah no, reminder.options is given by this array:

FIFTEEN_MINUTES:'~15 minutes',
ONE_HOUR:'~1 hour',
THREE_HOURS:'~3 hours',
REMIND_ME: '~Remind Me',
CANCEL: '~Cancel'

Message permanent page

— How would I loop through this in the step definition?

— For (const time of REMINDER_OPTIONS) {

— Is this what you mean?

— Maybe, i can try

— Nope not working

— Thanks tho

— Hi , i need help, can I trigger click to bring up the input with the default datepicker in the Mozilla Android browser ?

Message permanent page