Skip to content

Instantly share code, notes, and snippets.

@cowboyd
Created December 3, 2020 20:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cowboyd/ccbc83e05a17f93184dc63de9083b5df to your computer and use it in GitHub Desktop.
Save cowboyd/ccbc83e05a17f93184dc63de9083b5df to your computer and use it in GitHub Desktop.
Hypothetical pipeline syntax for bigtest tests
import { Page } from 'bigtest';
import { DashboardCard, Heading } from './interactors';
import { test, step, child, createList } from './client-test-helpers';
export default test('Admin UI: Main Dashboard')
|> createList('SomeEntity', 3)
|> Page.visit('/admin/dashboard')
|> Heading("Dashboard").exists()
|> DashboardCard("Stock Entities").exists()
|> child(
test("Click through Entities")
|> DashboardCard("Stock Entities").click()
|> Heading("Entities").exists())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment