Files
wehub-resource-sync dde272c4b8
CD - Docker - GHCR Images / Build and Push Images (push) Waiting to run
i18n - Build Validation / Validate i18n Builds (24) (push) Has been cancelled
CI - Node.js / Lint (24) (push) Has been cancelled
CI - Node.js / Build (24) (push) Has been cancelled
CI - Node.js / Test (24) (push) Has been cancelled
CI - Node.js / Test - Upcoming Changes (24) (push) Has been cancelled
CI - Node.js / Test - i18n (italian, 24) (push) Has been cancelled
CI - Node.js / Test - i18n (portuguese, 24) (push) Has been cancelled
chore: import upstream snapshot with attribution
2026-07-13 11:55:53 +08:00

41 lines
1.3 KiB
TypeScript

// TO ENABLE THESE TESTS GROWTHBOOK HAS TO BE SET IN THE ENVIRONMENT VARIABLES`
// UNCOMMENT WHEN NEW API IS READY.
// import { test, expect } from '@playwright/test';
// test.beforeEach(async ({ page }) => {
// await page.goto('/settings');
// });
// test.describe('Exam Token Widget', () => {
// test('should tell you to not share the token with anyone', async ({
// page
// }) => {
// await expect(
// page.getByText(
// 'Your exam token is a secret key that allows you to access the exam. Do not share this token with anyone'
// )
// ).toBeVisible();
// await expect(
// page.getByText(
// 'If you generate a new token, your old token will be invalidated.'
// )
// ).toBeVisible();
// await expect(
// page.getByRole('button', { name: 'Generate Exam Token' })
// ).toBeVisible();
// });
// test('should be able to generate a token', async ({ page }) => {
// await page.getByRole('button', { name: 'Generate Exam Token' }).click();
// await expect(page.getByText('Your Exam Token is:')).toBeVisible();
// await expect(page.getByRole('button', { name: 'Copy' })).toBeVisible();
// await expect(
// page.getByRole('button', { name: 'Close' }).nth(1)
// ).toBeVisible();
// });
// });