Playwright: check ID generation
This commit is contained in:
21
test-playwright/04-check-id-generation.spec.ts
Normal file
21
test-playwright/04-check-id-generation.spec.ts
Normal file
@@ -0,0 +1,21 @@
|
||||
import { test, expect } from '@playwright/test';
|
||||
|
||||
test('Check ID generation', async ({ page }) => {
|
||||
// Load Account view
|
||||
await page.goto('./account');
|
||||
|
||||
// Check that ID is empty
|
||||
await expect(page.locator('#sectionIdentityDetails code.truncate')).toBeEmpty();
|
||||
|
||||
// Load homepage to trigger ID generation (?)
|
||||
await page.goto('./');
|
||||
|
||||
// Wait for activity feed to start loading, as a delay
|
||||
await expect(page.locator('ul#listLatestActivity li:nth-child(10)')).toBeVisible();
|
||||
|
||||
// Go back to Account view
|
||||
await page.goto('./account');
|
||||
|
||||
// Check that ID is now generated
|
||||
await expect(page.locator('#sectionIdentityDetails code.truncate')).toContainText('did:ethr:');
|
||||
});
|
||||
Reference in New Issue
Block a user