mirror of
https://github.com/tlsnotary/tlsn-js.git
synced 2026-01-08 04:03:53 -05:00
* Run tests and demos with playwright * ci: renamed workflow * Improved demo readmes * Use a separate page for each test
16 lines
470 B
TypeScript
16 lines
470 B
TypeScript
import { test, expect } from '@playwright/test';
|
|
|
|
test('has title', async ({ page }) => {
|
|
await page.goto('/');
|
|
await expect(page).toHaveTitle(/TLSNotary/)
|
|
});
|
|
|
|
test('run demo', async ({ page }) => {
|
|
await page.goto('/');
|
|
|
|
// Click the get started link.
|
|
await page.getByRole('button', { name: 'Start Prover' }).click();
|
|
|
|
await expect(page.getByTestId('proof-data')).toContainText('Unredacted data successfully revealed to Verifier', { timeout: 60000 });
|
|
|
|
}); |