@ -80,7 +80,8 @@ At the locally running server:
```
rm ../endorser-ch-test-local.sqlite3
NODE_ENV=test-local npm run flyway migrate
NODE_ENV=test-local npm run test test/controller0
# The following seeds with data from tests. To seed with the bare minimum, run this instead: NODE_ENV=test-local npm run test test/controller0
test/test.sh
NODE_ENV=test-local npm run dev
@ -72,6 +72,9 @@ export default defineConfig({
},
],
/* Configure global timeout */
//pageTimeout: 30000,
/* Run your local dev server before starting the tests */
/**
* This could be an array of servers, meaning we could start the Endorser server as well:
@ -33,6 +33,5 @@ test('Add contact', async ({ page }) => {
// Confirm that home shows contact in "Record Something…" and "Latest Activity"
await page.goto('./');
await expect(page.locator('#sectionRecordSomethingGiven ul li').filter({ hasText: 'Contact 00' }).nth(0)).toBeVisible();
await expect(page.locator('ul#listLatestActivity li').filter({ hasText: 'Contact 00 gave to' }).nth(0)).toBeVisible();
await expect(page.locator('ul#listLatestActivity li').filter({ hasText: 'Contact 00 received' }).nth(0)).toBeVisible();
});