add instructions to run tests, and fix linting (for WebStorm)

This commit is contained in:
2024-07-19 14:35:48 -06:00
parent 27501f0898
commit 47274a9e7c
3 changed files with 22 additions and 2 deletions

View File

@@ -43,7 +43,7 @@ npm run lint
* Run the correct build: * Run the correct build:
* Test * Staging
``` ```
# (Let's replace this with a .env.development or .env.staging file.) # (Let's replace this with a .env.development or .env.staging file.)
# The test BVC_MEETUPS_PROJECT_CLAIM_ID does not resolve as a URL because it's only in the test DB and the prod redirect won't redirect there. # The test BVC_MEETUPS_PROJECT_CLAIM_ID does not resolve as a URL because it's only in the test DB and the prod redirect won't redirect there.
@@ -69,6 +69,10 @@ npm run build
## Tests ## Tests
### Automated
`npx playwright test`
### Register new user on test server ### Register new user on test server
On the test server, User #0 has rights to register others, so you can start On the test server, User #0 has rights to register others, so you can start

View File

@@ -0,0 +1,16 @@
module.exports = {
root: true,
parserOptions: {
ecmaVersion: 12,
sourceType: 'module',
requireConfigFile: false,
},
plugins: [],
rules: {
quotes: [
'error',
'single',
{ avoidEscape: true, allowTemplateLiterals: true },
],
},
};

View File

@@ -35,7 +35,7 @@ test('test', async ({ page }) => {
await expect(page.getByRole('code')).toContainText('did:ethr:0x0000694B58C2cC69658993A90D3840C560f2F51F'); await expect(page.getByRole('code')).toContainText('did:ethr:0x0000694B58C2cC69658993A90D3840C560f2F51F');
// Pause for 5 seconds // Pause for 5 seconds
await page.waitForTimeout(5000); // I have to wait, otherwise the (+) button to add a new project doesn't appear await page.waitForTimeout(5000); // I have to wait, otherwise the (+) button to add a new project doesn't appear
// Create new project // Create new project
await page.locator('#QuickNav').getByRole('link').nth(2).click(); await page.locator('#QuickNav').getByRole('link').nth(2).click();