Created
December 3, 2020 20:57
-
-
Save cowboyd/ccbc83e05a17f93184dc63de9083b5df to your computer and use it in GitHub Desktop.
Hypothetical pipeline syntax for bigtest tests
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 { 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