oneuptime/Playwright/Tests/Home/SignUp.spec.ts

14 lines
369 B
TypeScript
Raw Normal View History

2023-05-16 11:19:59 +00:00
import { test, expect, Page } from '@playwright/test';
2023-04-22 11:54:38 +00:00
2023-05-16 10:56:26 +00:00
import BASE_URL from '../../Utils/BaseURL';
2023-04-22 11:54:38 +00:00
test.beforeEach(async ({ page }: { page: Page }) => {
await page.goto(BASE_URL);
});
test('sign up button', async ({ page }: { page: Page }) => {
2023-05-16 11:19:59 +00:00
await page.getByTestId("Sign-up").click();
await expect(page).toHaveURL(BASE_URL+"/accounts/register");
2023-04-22 12:07:01 +00:00
});