Created
June 14, 2022 08:19
-
-
Save rodrigojmartin/4681a54fd7c2ba6dee80759815d94e30 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { Task } from '@serenity-js/core'; | |
import { Enter, Press } from '@serenity-js/webdriverio'; | |
import {Key} from '@serenity-js/webdriverio/lib/input' | |
import { TodoMVCApp } from './ui/TodoMVCApp'; | |
export const AddAnItemCalled = (name: string) => | |
Task.where(`#actor adds an item called "${ name }"`, | |
Enter.theValue(name).into(TodoMVCApp.newTodoField), | |
Press.the(Key.Enter).in(TodoMVCApp.newTodoField), | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment