Skip to content
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

[Cypress][TESTID-147] Add tests for table canvas in discover #9285

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

ananzh
Copy link
Member

@ananzh ananzh commented Jan 28, 2025

Description

Add tests for table canvas in discover
Note: It depends on #9154 and needs to rebase after it is merged. Test won't work before that.

Issues Resolved

#8947

Screenshot

Changelog

  • test: [Cypress][TESTID-147] Add tests for table canvas in discover

Check List

  • All tests pass
    • yarn test:jest
    • yarn test:jest_integration
  • New functionality includes testing.
  • New functionality has been documented.
  • Update CHANGELOG.md
  • Commits are signed per the DCO using --signoff

Copy link

codecov bot commented Jan 28, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 61.70%. Comparing base (a50e0c7) to head (c34f7d3).
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #9285      +/-   ##
==========================================
- Coverage   61.70%   61.70%   -0.01%     
==========================================
  Files        3816     3816              
  Lines       91824    91824              
  Branches    14542    14542              
==========================================
- Hits        56664    56662       -2     
- Misses      31506    31507       +1     
- Partials     3654     3655       +1     
Flag Coverage Δ
Linux_1 28.99% <ø> (ø)
Linux_2 56.46% <ø> (ø)
Linux_3 39.18% <ø> (-0.01%) ⬇️
Linux_4 28.91% <ø> (ø)
Windows_1 29.00% <ø> (ø)
Windows_2 56.41% <ø> (ø)
Windows_3 39.18% <ø> (ø)
Windows_4 28.91% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@ananzh ananzh mentioned this pull request Jan 28, 2025
7 tasks
@ananzh ananzh force-pushed the refactor-testid-147 branch from 8ee2845 to a4d2110 Compare January 30, 2025 16:25
opensearch-changeset-bot bot added a commit to ananzh/OpenSearch-Dashboards that referenced this pull request Jan 30, 2025
}).forEach((config) => {
describe(`${config.testName}`, () => {
beforeEach(() => {
if (config.datasetType === 'INDEX_PATTERN') {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nitpick: config.datasetType === DataTypes.IndexPattern.name (or something like that. i just hand wrote this)

@angle943
Copy link
Contributor

Doesn't there need to be a change to package.json?

}).forEach((config) => {
describe(`${config.testName}`, () => {
beforeEach(() => {
if (config.datasetType === 'INDEX_PATTERN') {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nitpick here too

Copy link
Member Author

@ananzh ananzh Jan 30, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

updated

@ananzh ananzh force-pushed the refactor-testid-147 branch from 22b4ec0 to 4230fef Compare January 30, 2025 17:31
LDrago27
LDrago27 previously approved these changes Jan 30, 2025
opensearch-changeset-bot bot added a commit to ananzh/OpenSearch-Dashboards that referenced this pull request Jan 30, 2025
url: SECONDARY_ENGINE.url,
authType: 'no_auth',
});
//cy.deleteWorkspaceByName(`${workspaceName}`);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this needed?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

updated

sejli
sejli previously approved these changes Jan 30, 2025
@ananzh
Copy link
Member Author

ananzh commented Jan 30, 2025

Doesn't there need to be a change to package.json?

added it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport 2.x backport 2.19 discover_2.0-test Issues that are specific to the Discover 2.0 testing initiative v2.19.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants