Skip to content

Instantly share code, notes, and snippets.

@rodrigojmartin
Created June 14, 2022 08:17
Show Gist options
  • Save rodrigojmartin/41e8ba8a5e2eb46f6f916bacd928b61e to your computer and use it in GitHub Desktop.
Save rodrigojmartin/41e8ba8a5e2eb46f6f916bacd928b61e to your computer and use it in GitHub Desktop.
import { Ensure, startsWith } from '@serenity-js/assertions';
import { Task } from '@serenity-js/core';
import { Navigate, Website } from '@serenity-js/webdriverio';
export const OpenTheApp = () =>
Task.where(`#actor opens the app`,
Navigate.to(`https://todomvc.com/examples/vue/`),
Ensure.that(Website.title(), startsWith('Vue')),
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment