Skip to content

Instantly share code, notes, and snippets.

@StephenFluin
Created February 6, 2020 19:35
Show Gist options
  • Save StephenFluin/de96c9f1869b497c8f7a373ab8f12280 to your computer and use it in GitHub Desktop.
Save StephenFluin/de96c9f1869b497c8f7a373ab8f12280 to your computer and use it in GitHub Desktop.
it("should switch to bug report template", async () => {
expect(fixture.debugElement.query("bug-report-form")).toBeNull();
const select = await loader.getHarness(MatSelect);
await select.clickOptions({ text: "Bug" });
expect(fixture.debugElement.query("bug-report-form")).not.toBeNull();
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment