mirror of
https://github.com/nasa/openmct.git
synced 2024-12-22 06:27:48 +00:00
c498f7d20c
* Closes #7820 - Fix 0 opacity fill in theme constants files for Gauge type needle. * move gauge plugin to its own suite * add two more snapshots * driveby: fix some flake * bug: update linting rule --------- Co-authored-by: John Hill <john.c.hill@nasa.gov> Co-authored-by: Andrew Henry <akhenry@gmail.com>
39 lines
1.1 KiB
JavaScript
39 lines
1.1 KiB
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'
|
|
}
|
|
},
|
|
{
|
|
files: ['**/*.visual.spec.js'],
|
|
rules: {
|
|
'playwright/no-networkidle': 'off' //https://github.com/nasa/openmct/issues/7549
|
|
}
|
|
}
|
|
]
|
|
};
|