Then the contact "Lina Haddad" should have the tag "webship-test-onboarded" once the scheduled tasks have run

Assert that the site's scheduled tasks give a contact a tag: a campaign's action, or a segment that feeds a campaign. The step opens the contact's page again every five seconds until the tag is there (180 seconds at most, SCHEDULED_TASKS_TIMEOUT): the tasks run on the site's own schedule.

Examples

Then the contact "Lina Haddad" should have the tag "webship-test-onboarded" once the scheduled tasks have run
Then the contact "Omar Saleh" should have the tag "webship-test-onboarded" once the scheduled tasks have run
And the contact "Maya Nasser" should have the tag "webship-test-onboarded" once the scheduled tasks have run
Then the contact "lina.haddad@example.com" should have the tag "webship-test-nurtured" once the scheduled tasks have run
Then the contact "Karim Aziz" should have the tag "webship-test-onboarded" once the scheduled tasks have run

Pattern

Then(/^the contact "([^"]*)" should have the tag "([^"]*)" once the scheduled tasks have run$/, …)

Part of @webship-js/mautic-steps (github.com/webship/mautic-steps), a step pack for Webship-js 2.0.x.