Jose Olarte III
4 months ago
2 changed files with 21 additions and 1 deletions
@ -1,7 +1,7 @@ |
|||||
import { test, expect } from '@playwright/test'; |
import { test, expect } from '@playwright/test'; |
||||
|
|
||||
test('Confirm usage of test API', async ({ page }) => { |
test('Confirm usage of test API', async ({ page }) => { |
||||
// Load app homepage
|
// Load account view
|
||||
await page.goto('./account'); |
await page.goto('./account'); |
||||
await page.getByRole('heading', { name: 'Advanced' }).click(); |
await page.getByRole('heading', { name: 'Advanced' }).click(); |
||||
await expect(page.getByRole('textbox').nth(1)).toHaveValue('https://test-api.endorser.ch'); |
await expect(page.getByRole('textbox').nth(1)).toHaveValue('https://test-api.endorser.ch'); |
||||
|
@ -0,0 +1,20 @@ |
|||||
|
import { test, expect } from '@playwright/test'; |
||||
|
|
||||
|
test('Check no-ID messaging in homepage', async ({ page }) => { |
||||
|
// Load app homepage
|
||||
|
await page.goto('./'); |
||||
|
|
||||
|
// Check 'someone must register you' notice
|
||||
|
await expect(page.getByText('To share, someone must register you.')).toBeVisible(); |
||||
|
}); |
||||
|
|
||||
|
test('Check no-ID messaging in account', async ({ page }) => { |
||||
|
// Load account view
|
||||
|
await page.goto('./account'); |
||||
|
|
||||
|
// Check 'someone must register you' notice
|
||||
|
await expect(page.getByText('Note: Before you can share with others or take any action, you need an identifier.')).toBeVisible(); |
||||
|
|
||||
|
// Check 'a friend needs to register you' notice
|
||||
|
await expect(page.getByText('Note: Before you can publicly announce a new project or time commitment, a friend needs to register you.')).toBeVisible(); |
||||
|
}); |
Loading…
Reference in new issue