@@ -1588,8 +1588,7 @@ module.exports = {
15881588 {
15891589 files : [
15901590 'src/platform/packages/shared/kbn-scout/src/playwright/**/*.ts' ,
1591- 'x-pack/solutions/observability/packages/kbn-scout-oblt/src/playwright/**/*.ts' ,
1592- 'x-pack/solutions/security/packages/kbn-scout-security/src/playwright/**/*.ts' ,
1591+ 'x-pack/solutions/**/packages/kbn-scout-*/src/playwright/**/*.ts' ,
15931592 'src/platform/{packages,plugins}/**/test/{scout,scout_*}/**/*.ts' ,
15941593 'x-pack/platform/{packages,plugins}/**/test/{scout,scout_*}/**/*.ts' ,
15951594 'x-pack/solutions/**/{packages,plugins}/**/test/{scout,scout_*}/**/*.ts' ,
@@ -2388,6 +2387,12 @@ module.exports = {
23882387 message : "Platform tests should import only from '@kbn/scout'." ,
23892388 } ,
23902389 ] ,
2390+ patterns : [
2391+ {
2392+ group : [ '@kbn/scout-*' , '@playwright/test/**' , 'playwright/**' ] ,
2393+ message : "Platform tests should import only from '@kbn/scout'." ,
2394+ } ,
2395+ ] ,
23912396 } ,
23922397 ] ,
23932398 } ,
@@ -2426,6 +2431,36 @@ module.exports = {
24262431 ] ,
24272432 } ,
24282433 } ,
2434+ {
2435+ files : [ 'x-pack/solutions/search/plugins/**/test/{scout,scout_*}/**/*.ts' ] ,
2436+ rules : {
2437+ 'no-restricted-imports' : [
2438+ 'error' ,
2439+ {
2440+ paths : [
2441+ {
2442+ name : '@kbn/scout' ,
2443+ message : "Search solution tests should import from '@kbn/scout-search' instead." ,
2444+ } ,
2445+ {
2446+ name : '@playwright/test' ,
2447+ message : "Search solution tests should import from '@kbn/scout-search' instead." ,
2448+ } ,
2449+ {
2450+ name : 'playwright' ,
2451+ message : "Search solution tests should import from '@kbn/scout-search' instead." ,
2452+ } ,
2453+ ] ,
2454+ patterns : [
2455+ {
2456+ group : [ '@kbn/scout/**' , '@playwright/test/**' , 'playwright/**' ] ,
2457+ message : "Search solution tests should import from '@kbn/scout-search' instead." ,
2458+ } ,
2459+ ] ,
2460+ } ,
2461+ ] ,
2462+ } ,
2463+ } ,
24292464 {
24302465 files : [ 'x-pack/solutions/security/plugins/**/test/{scout,scout_*}/**/*.ts' ] ,
24312466 rules : {
@@ -2469,6 +2504,7 @@ module.exports = {
24692504 ] ,
24702505 rules : {
24712506 '@kbn/eslint/scout_no_describe_configure' : 'error' ,
2507+ '@kbn/eslint/scout_test_file_naming' : 'error' ,
24722508 '@kbn/eslint/scout_require_api_client_in_api_test' : 'error' ,
24732509 '@kbn/eslint/require_include_in_check_a11y' : 'warn' ,
24742510 } ,
0 commit comments