-
Notifications
You must be signed in to change notification settings - Fork 8.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Security Solution] Unskip cypress tests #86653
Changes from 7 commits
14850f6
fbcb096
59821e3
1af4bda
6f5a232
02e6d32
4f4d67a
f89646d
8aee256
7daeef0
60f815b
e3925b8
6f5cade
cb2ee11
4a9c9e6
133e674
0f61f66
c240357
1ca8af9
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -49,6 +49,7 @@ import { | |
TIMELINE_EDIT_MODAL_OPEN_BUTTON, | ||
TIMELINE_EDIT_MODAL_SAVE_BUTTON, | ||
QUERY_TAB_BUTTON, | ||
QUERY_TAB_EVENTS_FOOTER, | ||
} from '../screens/timeline'; | ||
import { TIMELINES_TABLE } from '../screens/timelines'; | ||
|
||
|
@@ -118,7 +119,6 @@ export const closeTimeline = () => { | |
|
||
export const createNewTimeline = () => { | ||
cy.get(TIMELINE_SETTINGS_ICON).filter(':visible').click({ force: true }); | ||
cy.wait(1000); | ||
cy.get(CREATE_NEW_TIMELINE).should('be.visible'); | ||
cy.get(CREATE_NEW_TIMELINE).click(); | ||
}; | ||
|
@@ -166,7 +166,8 @@ export const pinFirstEvent = () => { | |
|
||
export const populateTimeline = () => { | ||
executeTimelineKQL(hostExistsQuery); | ||
cy.get(SERVER_SIDE_EVENT_COUNT) | ||
cy.get(QUERY_TAB_EVENTS_FOOTER) | ||
.find(SERVER_SIDE_EVENT_COUNT) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. if you want to find There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. https://docs.cypress.io/api/commands/find.html#Syntax looks good to me too. |
||
.invoke('text') | ||
.then((strCount) => { | ||
const intCount = +strCount; | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can we limit the scope of the changes to the Security solution plugin only?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah I understand, but it added an extra whitespace in the
data-test-subj
and failed the cypress test.I had a quick fix by adding an extra whitespace
in x-pack/plugins/security_solution/cypress/screens/timeline.ts Line 111
in my previous PR to adapt to it, but I don't think that's a good solution.#85871