Skip to content

Instantly share code, notes, and snippets.

@Robdel12
Last active October 28, 2018 21:47
Show Gist options
  • Save Robdel12/dcca0654605f483a9626c62188c99492 to your computer and use it in GitHub Desktop.
Save Robdel12/dcca0654605f483a9626c62188c99492 to your computer and use it in GitHub Desktop.
import { setupAppForTesting } from "@bigtest/react";
import AppRootComponent from "../../src/index";
describe("Signup acceptance test", () => {
let signup = new SignUpInteractor();
beforeEach(async () => {
await setupAppForTesting(AppRootComponent);
});
describe("filling in the form", async () => {
beforeEach(async () => {
await signup
.firstName.fillAndBlur("Bob")
.lastName.fillAndBlur("Ross")
.subscribeCheckbox.toggle()
.submitBtn.click();
});
it("properly submits the form", async () => {
// ...
});
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment