testeranto
Version:
the AI powered BDD test framework for typescript projects
36 lines (32 loc) • 908 B
text/typescript
import { ITestSpecification } from "../../../CoreTypes";
import { I, O } from "./types";
export const specification: ITestSpecification<I, O> = (
Suite,
Given,
When,
Then
) => {
return [
Suite.Default("AppFrame basic rendering", {
"renders container": Given.Default([], [], [Then.RendersContainer()]),
"has main content area": Given.Default([], [], [Then.HasMainContent()]),
has_footer: Given.Default(
[],
[],
[Then.HasFooter(), Then.takeScreenshot("hello.png")]
),
}),
// Suite.Layout("AppFrame layout structure", {
// "contains settings button": Given.Default(
// [],
// [],
// [Then.HasSettingsButton()]
// ),
// "contains testeranto link": Given.Default(
// [],
// [],
// [Then.HasTesterantoLink(), Then.takeScreenshot("hello.png")]
// ),
// }),
];
};