Skip to content

Commit

Permalink
test: add test for footer content
Browse files Browse the repository at this point in the history
  • Loading branch information
PascalinDe committed Nov 30, 2023
1 parent 038197b commit f5951a5
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion web/frontend/tests/integration/footer.spec.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
import { test, expect } from '@playwright/test';
import { default as i18n } from 'i18next';
import { initI18n } from './utils';
import { initI18n, getFooter } from './utils';

initI18n();

test('Assert footer content is present', async ({ page }) => {
await page.goto(process.env.FRONT_END_URL);
await expect(page.getByText(i18n.t('© 2022 DEDIS LAB -')).first()).toBeVisible();
await expect(
page.getByRole('link', { name: 'https://github.com/c4dt/d-voting' }).first()
).toBeVisible();
await expect(
page.getByText(`version:${process.env.REACT_APP_VERSION || 'unknown'} - build ${process.env.REACT_APP_BUILD || 'unknown'} - on ${process.env.REAC_APP_BUILD_TIME || 'unknown'}`)
).toBeVisible()
});

0 comments on commit f5951a5

Please sign in to comment.