28 lines
1.9 KiB
JavaScript
28 lines
1.9 KiB
JavaScript
import { test, expect } from "@playwright/test";
|
|
|
|
test("test", async ({ page }) => {
|
|
await page.goto("http://localhost:3000/");
|
|
await page.getByTestId("scenario-textarea").click();
|
|
await page.getByTestId("scenario-textarea").click();
|
|
await page
|
|
.getByTestId("scenario-textarea")
|
|
.fill(
|
|
"I am deciding whether to launch a new software product this year or wait twelve months. The product is ready enough to launch, but one large enterprise customer could represent a significant part of the expected revenue and I do not yet know whether they will sign. Launching this year would also require around £300,000 of additional support and implementation cost. Waiting twelve months would reduce that immediate cost and give us more time to improve the product, but it would delay revenue and may allow competitors to move first. I need to decide whether there is enough evidence to launch this year or whether waiting is the safer decision.",
|
|
);
|
|
await page.getByRole("button", { name: "Analyse" }).click();
|
|
await page.getByTestId("response-textarea").click();
|
|
await page
|
|
.getByTestId("response-textarea")
|
|
.fill(
|
|
"Launching this year would need to remain commercially viable without the enterprise customer. I would want to see enough committed or highly probable revenue from other customers to cover the additional £300,000 implementation and support cost and still produce an acceptable return.",
|
|
);
|
|
await page.getByRole("button", { name: "Update" }).click();
|
|
await page.getByTestId("response-textarea").click();
|
|
await page
|
|
.getByTestId("response-textarea")
|
|
.fill(
|
|
"We have £450,000 of annual recurring revenue already committed from other customers, plus another £250,000 in late-stage opportunities that I would estimate have about a 70% probability of closing within the next six months.",
|
|
);
|
|
await page.getByRole("button", { name: "Update" }).click();
|
|
});
|