forked from trent_larson/crowd-funder-for-time-pwa
add instructions to run tests, and fix linting (for WebStorm)
This commit is contained in:
16
test-playwright/.eslintrc.js
Normal file
16
test-playwright/.eslintrc.js
Normal 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 },
|
||||
],
|
||||
},
|
||||
};
|
||||
@@ -35,7 +35,7 @@ test('test', async ({ page }) => {
|
||||
await expect(page.getByRole('code')).toContainText('did:ethr:0x0000694B58C2cC69658993A90D3840C560f2F51F');
|
||||
|
||||
// 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
|
||||
await page.locator('#QuickNav').getByRole('link').nth(2).click();
|
||||
|
||||
Reference in New Issue
Block a user