-
Notifications
You must be signed in to change notification settings - Fork 917
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
Re-enable dataset_selector.spec.js and queries.spec.js under workspace #9082
Conversation
@@ -5,3 +5,5 @@ | |||
|
|||
export const DATASOURCE_NAME = 'query-cluster'; | |||
export const WORKSPACE_NAME = 'query-workspace'; | |||
export const START_TIME = 'Dec 31, 2020 @ 00:00:00.000'; | |||
export const END_TIME = 'Dec 31, 2022 @ 23:59:59.999'; |
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.
could we relax these dates to not make it so close to our dataset? more convo here: #9047 (comment)
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.
good point. let me update it with other comments.
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.
fixed it
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #9082 +/- ##
==========================================
+ Coverage 60.86% 60.90% +0.03%
==========================================
Files 3808 3808
Lines 91175 91178 +3
Branches 14396 14396
==========================================
+ Hits 55495 55531 +36
+ Misses 32140 32094 -46
- Partials 3540 3553 +13
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
Signed-off-by: Anan <[email protected]>
d706016
to
feaed99
Compare
miscUtils.visitPage( | ||
`app/data-explorer/discover#/?_g=(filters:!(),time:(from:'2015-09-19T13:31:44.000Z',to:'2015-09-24T01:31:44.000Z'))` | ||
); | ||
const miscUtils = new MiscUtils(cy); |
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.
Do we need the MiscUtils
since we are only using this to for navigation which we can do using the cypress commands.
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.
Plan to migrate MiscUtils.visitPage from lib to our cypress in a follow up
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.
fixed it
Signed-off-by: Anan <[email protected]>
177981b
to
a1eb638
Compare
const testFixtureHandler = new TestFixtureHandler(cy, PATHS.ENGINE); | ||
|
||
describe.skip('dataset selector', { scrollBehavior: false }, () => { | ||
describe('empty state', () => { |
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.
why do we delete the test for testing the empty state? i think we do need to test when there is no index pattern
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.
we moved it to a_check.spec.js
cy.waitForSearch(); | ||
cy.getElementByTestId(`queryResultCompleteMsg`).should('be.visible'); | ||
cy.get('[class="euiText euiText--small"]').then((text) => cy.log(text)); | ||
cy.verifyHitCount(4); |
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.
Why do we delete verifying the hit count? If we delete verifying hit count, how are we ensuring the query is persisted across refresh?
Feel like cy.getElementByTestId(
queryResultCompleteMsg).should('be.visible');
only does not provide valid proof
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.
sure. I added cy.verifyHitCount('10,000');
Signed-off-by: Anan <[email protected]>
5d6bd5b
to
0a4368b
Compare
Description
2024-12-19_14-52-14.mp4
2024-12-19_18-59-21.mp4
Note:
is from #9047
Issues Resolved
NA
Changelog
Check List
yarn test:jest
yarn test:jest_integration