From 5c8244bef7172da85138ed5543340466c5b48b5e Mon Sep 17 00:00:00 2001 From: Carine Dengler Date: Wed, 22 Nov 2023 18:32:56 +0100 Subject: [PATCH] test: add first playwright test --- web/frontend/tests/integration/homepage.spec.ts | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 web/frontend/tests/integration/homepage.spec.ts diff --git a/web/frontend/tests/integration/homepage.spec.ts b/web/frontend/tests/integration/homepage.spec.ts new file mode 100644 index 000000000..712af6860 --- /dev/null +++ b/web/frontend/tests/integration/homepage.spec.ts @@ -0,0 +1,6 @@ +import { test, expect } from '@playwright/test'; + +test('Assert homepage title', async({ page }) => { + await page.goto(process.env.FRONT_END_URL); + await expect(page).toHaveTitle(/D-Voting/); +});