forked from trent_larson/crowd-funder-for-time-pwa
adjust tests for new onboarding messages
This commit is contained in:
@@ -4,6 +4,7 @@ import { deleteContact, generateAndRegisterEthrUser, importUser } from './testUt
|
||||
test('Check activity feed', async ({ page }) => {
|
||||
// Load app homepage
|
||||
await page.goto('./');
|
||||
await page.getByTestId('closeOnboardingAndFinish').click();
|
||||
|
||||
// Check that initial 10 activities have been loaded
|
||||
await page.locator('ul#listLatestActivity li:nth-child(10)');
|
||||
@@ -75,6 +76,7 @@ test('Check ID generation', async ({ page }) => {
|
||||
test('Check setting name & sharing info', async ({ page }) => {
|
||||
// Load homepage to trigger ID generation (?)
|
||||
await page.goto('./');
|
||||
await page.getByTestId('closeOnboardingAndFinish').click();
|
||||
// Check 'someone must register you' notice
|
||||
await expect(page.getByText('someone must register you.')).toBeVisible();
|
||||
await page.getByRole('button', { name: /Show them/}).click();
|
||||
@@ -116,6 +118,7 @@ test('Check User 0 can register a random person', async ({ page }) => {
|
||||
expect(newDid).toContain('did:ethr:');
|
||||
|
||||
await page.goto('./');
|
||||
await page.getByTestId('closeOnboardingAndFinish').click();
|
||||
await page.getByRole('heading', { name: 'Unnamed/Unknown' }).click();
|
||||
await page.getByPlaceholder('What was given').fill('Gave me access!');
|
||||
await page.getByRole('button', { name: 'Sign & Send' }).click();
|
||||
|
||||
Reference in New Issue
Block a user