mirror of
https://github.com/nasa/openmct.git
synced 2024-12-23 15:02:23 +00:00
21a4335c4e
* test: fix broken locator in imagery perf test
* Prevent this from happening
* make rule explicit
* test: maintain `locator()` pattern for contract tests
* test(couchdb): try some new techniques to stabilize the test
* Revert "test(couchdb): try some new techniques to stabilize the test"
This reverts commit 9aa1ea95a1
.
* chore: revert to `networkidle` and disable eslint rule
* test: add `@network` annotation for tests with real network requests
---------
Co-authored-by: Hill, John (ARC-TI)[KBR Wyle Services, LLC] <john.c.hill@nasa.gov>
33 lines
938 B
JavaScript
33 lines
938 B
JavaScript
/* eslint-disable no-undef */
|
|
module.exports = {
|
|
extends: ['plugin:playwright/recommended'],
|
|
rules: {
|
|
'playwright/max-nested-describe': ['error', { max: 1 }],
|
|
'playwright/expect-expect': 'off'
|
|
},
|
|
overrides: [
|
|
{
|
|
//Apply Best Practices to externalFixtures and exampleTemplate.e2e.spec.js
|
|
files: [
|
|
'appActions.js',
|
|
'baseFixtures.js',
|
|
'pluginFixtures.js',
|
|
'**/exampleTemplate.e2e.spec.js'
|
|
],
|
|
rules: {
|
|
'playwright/no-raw-locators': 'error',
|
|
'playwright/no-nth-methods': 'error',
|
|
'playwright/no-get-by-title': 'error',
|
|
'playwright/prefer-comparison-matcher': 'error'
|
|
}
|
|
},
|
|
{
|
|
// Disable no-raw-locators for .contract.perf.spec.js files until https://github.com/grafana/xk6-browser/issues/1226
|
|
files: ['**/*.contract.perf.spec.js'],
|
|
rules: {
|
|
'playwright/no-raw-locators': 'off'
|
|
}
|
|
}
|
|
]
|
|
};
|