Skip to content

Commit

Permalink
fix: configurationIds implementing
Browse files Browse the repository at this point in the history
  • Loading branch information
alexneo2003 committed Oct 14, 2022
1 parent d1b250d commit 9c9ad44
Show file tree
Hide file tree
Showing 3 changed files with 138 additions and 114 deletions.
5 changes: 5 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"printWidth": 120,
"singleQuote": true,
"trailingComma": "es5"
}
23 changes: 12 additions & 11 deletions playwright.config.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { PlaywrightTestConfig } from '@playwright/test'
import azureConfig from './azure.config.json'
import { AzureReporterOptions } from './src/playwright-azure-reporter'
import { PlaywrightTestConfig } from '@playwright/test';
import azureConfig from './azure.config.json';
import { AzureReporterOptions } from './src/playwright-azure-reporter';

/**
* See https://playwright.dev/docs/test-configuration.
Expand All @@ -9,7 +9,7 @@ const config: PlaywrightTestConfig = {
testDir: './tests',
timeout: 30 * 1000,
expect: {
timeout: 5000
timeout: 5000,
},
forbidOnly: !!process.env.CI,
retries: process.env.CI ? 2 : 0,
Expand All @@ -29,19 +29,20 @@ const config: PlaywrightTestConfig = {
logging: true,
attachmentsType: ['screenshot'],
testRunConfig: {
configurationIds: [1],
owner: {
displayName: 'Alex Neo',
},
comment: 'Playwright Test Run',
}
} as AzureReporterOptions
]
},
} as AzureReporterOptions,
],
],
use: {
screenshot: 'only-on-failure',
actionTimeout: 0,
trace: 'on-first-retry'
}
}
trace: 'on-first-retry',
},
};

export default config
export default config;
Loading

0 comments on commit 9c9ad44

Please sign in to comment.