-
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.
[SecuritySolution] Move manual test cases to Cypress (#100730)
* add scenarios 1-3 * add tests for toggle full screen * add tests for timeline pagination * add tests for timeline correlation tab * fix cypress tests * add data-test-subj for timeline tabs content * fix up * fix flaky tests * fix mark as favorite scenario * fix flaky test * fix flaky test * fix flaky test * refactors 'can be marked as favourite' test * fixes test * fixes typecheck issue * refactors the pipe * little fix * mark as favourite refactor * removes code that causes the flakiness * apply the fix for 7.13 branch * fix timeline api call * fix timeline api call * fix timeline api call * fix syntax Co-authored-by: Kibana Machine <[email protected]> Co-authored-by: Gloria Hornero <[email protected]>
- Loading branch information
1 parent
1fb2640
commit 62eece5
Showing
23 changed files
with
595 additions
and
39 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
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
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
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
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
41 changes: 41 additions & 0 deletions
41
x-pack/plugins/security_solution/cypress/integration/timelines/full_screen.spec.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,41 @@ | ||
/* | ||
* 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 { TIMELINE_HEADER, TIMELINE_TABS } from '../../screens/timeline'; | ||
import { cleanKibana } from '../../tasks/common'; | ||
|
||
import { loginAndWaitForPage } from '../../tasks/login'; | ||
import { | ||
openTimelineUsingToggle, | ||
enterFullScreenMode, | ||
exitFullScreenMode, | ||
} from '../../tasks/security_main'; | ||
import { populateTimeline } from '../../tasks/timeline'; | ||
|
||
import { HOSTS_URL } from '../../urls/navigation'; | ||
|
||
describe('Toggle full screen', () => { | ||
before(() => { | ||
cleanKibana(); | ||
loginAndWaitForPage(HOSTS_URL); | ||
openTimelineUsingToggle(); | ||
populateTimeline(); | ||
}); | ||
|
||
it('Should hide timeline header and tab list area', () => { | ||
enterFullScreenMode(); | ||
|
||
cy.get(TIMELINE_TABS).should('not.exist'); | ||
cy.get(TIMELINE_HEADER).should('not.be.visible'); | ||
}); | ||
|
||
it('Should show timeline header and tab list area', () => { | ||
exitFullScreenMode(); | ||
cy.get(TIMELINE_TABS).should('exist'); | ||
cy.get(TIMELINE_HEADER).should('be.visible'); | ||
}); | ||
}); |
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
Oops, something went wrong.