@samepage/testing
Version:
Utilities that help with testing SamePage-compatible extensions
16 lines • 886 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
const runOnboardingStep = async ({ test, page, expect, }) => test.step("Onboard Notebook", async () => {
await page.locator("text=Get Started").click();
await page.locator("text=Add Another Notebook").click();
await page.locator("text=Email >> input").fill("test@samepage.network");
await page
.locator("text=Password >> input")
.fill(process.env.SAMEPAGE_TEST_PASSWORD || "");
await page.locator("text=I have read and agree").click();
await page.locator('div[role=dialog] >> text="Connect"').click();
await page.locator('div[role=dialog] >> button >> text="All Done"').click();
await expect(page.locator('div[role=dialog] >> text="Welcome to SamePage"')).not.toBeVisible();
});
exports.default = runOnboardingStep;
//# sourceMappingURL=runOnboardingStep.js.map