-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Security Solution] Introducing PLI testing on AET Cypress tests for …
…serverless (#165254)
- Loading branch information
1 parent
94bccbc
commit b55c949
Showing
4 changed files
with
110 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
40 changes: 40 additions & 0 deletions
40
...on_cypress/cypress/e2e/explore/dashboards/entity_analytics_serverless_splash_screen.cy.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
/* | ||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one | ||
* or more contributor license agreements. Licensed under the Elastic License | ||
* 2.0; you may not use this file except in compliance with the Elastic License | ||
* 2.0. | ||
*/ | ||
|
||
import { login, visit } from '../../../tasks/login'; | ||
|
||
import { ENTITY_ANALYTICS_URL } from '../../../urls/navigation'; | ||
|
||
import { PAYWALL_DESCRIPTION } from '../../../screens/entity_analytics_serverless_splash'; | ||
|
||
describe( | ||
'Entity Analytics Dashboard in Serverless', | ||
{ | ||
tags: '@serverless', | ||
env: { | ||
ftrConfig: { | ||
productTypes: [ | ||
{ product_line: 'security', product_tier: 'essentials' }, | ||
{ product_line: 'endpoint', product_tier: 'essentials' }, | ||
], | ||
}, | ||
}, | ||
}, | ||
() => { | ||
beforeEach(() => { | ||
login(); | ||
visit(ENTITY_ANALYTICS_URL); | ||
}); | ||
|
||
it('should display a splash screen when visited with Security essentials PLI ', () => { | ||
cy.get(PAYWALL_DESCRIPTION).should( | ||
'have.text', | ||
'Entity risk scoring capability is available in our Security Complete license tier' | ||
); | ||
}); | ||
} | ||
); |
8 changes: 8 additions & 0 deletions
8
x-pack/test/security_solution_cypress/cypress/screens/entity_analytics_serverless_splash.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
/* | ||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one | ||
* or more contributor license agreements. Licensed under the Elastic License | ||
* 2.0; you may not use this file except in compliance with the Elastic License | ||
* 2.0. | ||
*/ | ||
|
||
export const PAYWALL_DESCRIPTION = '[data-test-subj="paywallCardDescription"]'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters