Tag the open task through its sidebar's "Edit the task": the tag chosen in its Tags (one of the project's, or a new one, which the site makes), then Save.
Examples
When I add the tag "greeting" to the task
When we add the tag "greeting" to the task
And I add the tag "greeting" to the task
And we add the tag "greeting" to the task
When we add the tag "greeting" to the task
Pattern
When(/^(I |we )*add the tag "([^"]*)" to the task$/, …)
Part of @webship-js/kanboard-steps (github.com/webship/kanboard-steps), a step pack for Webship-js 2.0.x.