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

TESTID-140 sidebar first test suite #9021

Open
wants to merge 82 commits into
base: cypress-unification
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
82 commits
Select commit Hold shift + click to select a range
073a9ff
Mitigate the incorrect layout of Discover due to a race condition bet…
AMoo-Miki Nov 26, 2024
c24d5bc
[Workspace] feat: optimize recent items and filter out items whose wo…
raintygao Nov 27, 2024
8f58bce
[Auto Suggest] SQL Syntax Highlighting fix (#8951)
paulstn Nov 27, 2024
473c0ae
Bump `@opensearch-project/opensearch` from 2.9.0 to 2.13.0 (#8886)
AMoo-Miki Nov 27, 2024
4dac5a7
[workspace]fix: Change some of the http link in settings page to http…
Qxisylolo Nov 28, 2024
1c744d6
[Workspace]Support search dev tools by its category name (#8920)
Hailong-am Nov 28, 2024
b31206a
[Workspace] Isolate objects based on workspace when calling get/bulkG…
yubonluo Dec 2, 2024
080b0db
[Discover] Fix Initialization if No Saved Query (#8930)
sejli Dec 3, 2024
340326f
[Workspace][Bug] Check if workspaces exists when creating saved objec…
yubonluo Dec 3, 2024
d5e0087
[Discover] fix PPL to not throw error if aggregation query fails (#8992)
joshuali925 Dec 3, 2024
e07680b
Upgrade Cypress to v12 (#8995)
d-rowe Dec 3, 2024
fe616e7
[Query enhancements] use status 503 if search strategy throws 500 (#8…
joshuali925 Dec 3, 2024
98e9042
Revert "[augmenter] do not support datasources with no version (#8915…
ohltyler Dec 4, 2024
36bf5e8
[Workspace] Clear the attribute of error objects (#9003)
yubonluo Dec 5, 2024
41ac8ab
bump `url` to 0.11.4 (#8611)
joshuali925 Dec 5, 2024
3f65938
[Discover] use roundUp when converting timestamp for PPL (#8935)
joshuali925 Dec 5, 2024
af429b6
[Workspace]Fix error toasts in sample data page (#8842)
wanglam Dec 6, 2024
afb2605
fix: update the osd-plugin-generator template to reference the correc…
angle943 Dec 6, 2024
7df73dd
[Discover] Support custom logic to insert time filter based on datase…
joshuali925 Dec 6, 2024
6a0484a
[Discover Test] TestID-69: Filtering. Add data-test-subj tags. (#9027)
ArgusLi Dec 10, 2024
9f23442
add queryEditorLanguageOptions data-test-subj on language_selector.ts…
silva-qa Dec 10, 2024
d79ea88
[Discover] Add max height and scroll to error message body (#8867)
jowg-amazon Nov 14, 2024
0acd834
Keep previous query result if current query result in error (#8863)
abbyhu2000 Nov 15, 2024
3965f67
Fix a typo while inspecting values for large numerals in OSD and the …
AMoo-Miki Nov 15, 2024
bd26d1f
[Discover] Dataset search on page load issues (#8871)
kavilla Nov 15, 2024
882fdf2
[Discover] Hide Date Picker For Unsupported Types (#8866)
sejli Nov 15, 2024
7441fef
[Bug] Make release note generation more resilient by gracefully handl…
ananzh Nov 15, 2024
eede97b
Fix openApi doc for bulk saved object API http method (#8885)
BionIT Nov 18, 2024
fc708ff
[CVE-2024-21538] Bump `cross-spawn` from 6.0.5 and 7.0.3 to 7.0.5 (#8…
AMoo-Miki Nov 18, 2024
7a6c727
Adjusted source of QueryStringManager functions for flyout. (#8864)
AWSHurneyt Nov 18, 2024
8a202f0
[chore]upgrade actions/upload-artifact to v4 (#8855)
Hailong-am Nov 19, 2024
8da61f0
Use currently selected data source when no source attached to saved q…
amsiglan Nov 19, 2024
d1996d3
Added framework to get default query string using dataset and languag…
amsiglan Nov 20, 2024
60102f3
Only support copy for query templates (#8899)
amsiglan Nov 20, 2024
ba259e4
removed extra param getInitialDatasetQueryString in query_string_mana…
amsiglan Nov 20, 2024
e0d2848
Remove filter out serverless cluster and add support to extract index…
ananzh Nov 21, 2024
e046f32
Re-enable serverless mds support for index pattern (#8909)
ananzh Nov 21, 2024
e8281b1
enable s3 (#8911)
ananzh Nov 21, 2024
3e9e64d
Fix query editor cursor alignment by removing monaco css overrides (#…
d-rowe Nov 22, 2024
fa16c57
[augmenter] do not support datasources with no version (#8915)
kavilla Nov 22, 2024
8a31bd8
Update Cypress to v12 (#8926)
d-rowe Nov 27, 2024
ea152ab
Add utils to select a data source.
ArgusLi Dec 3, 2024
0e7be5f
Add support for different languages when creating dataset. Filter Out…
ArgusLi Dec 4, 2024
f30e89d
Mitigate the incorrect layout of Discover due to a race condition bet…
AMoo-Miki Nov 26, 2024
3cd9b9c
[Workspace] feat: optimize recent items and filter out items whose wo…
raintygao Nov 27, 2024
81387a2
[Auto Suggest] SQL Syntax Highlighting fix (#8951)
paulstn Nov 27, 2024
e9ff35c
Bump `@opensearch-project/opensearch` from 2.9.0 to 2.13.0 (#8886)
AMoo-Miki Nov 27, 2024
2c39431
[workspace]fix: Change some of the http link in settings page to http…
Qxisylolo Nov 28, 2024
d6ede1d
[Workspace]Support search dev tools by its category name (#8920)
Hailong-am Nov 28, 2024
cabe8b8
[Workspace] Isolate objects based on workspace when calling get/bulkG…
yubonluo Dec 2, 2024
d303c87
[Discover] Fix Initialization if No Saved Query (#8930)
sejli Dec 3, 2024
e41f26c
[Workspace][Bug] Check if workspaces exists when creating saved objec…
yubonluo Dec 3, 2024
0b35c12
[Discover] fix PPL to not throw error if aggregation query fails (#8992)
joshuali925 Dec 3, 2024
25bf53e
Reformat to match OSD-functional-tests.
ArgusLi Dec 4, 2024
a231848
Upgrade Cypress to v12 (#8995)
d-rowe Dec 3, 2024
495a69e
[Query enhancements] use status 503 if search strategy throws 500 (#8…
joshuali925 Dec 3, 2024
dc235e2
Revert "[augmenter] do not support datasources with no version (#8915…
ohltyler Dec 4, 2024
fea5a8f
Complete test suite filter actions in table field.
ArgusLi Dec 5, 2024
92c8538
Fix filter_label.test.tsx failing due to added data-test-subj
ArgusLi Dec 5, 2024
bfa7e84
[Workspace] Clear the attribute of error objects (#9003)
yubonluo Dec 5, 2024
db6780f
bump `url` to 0.11.4 (#8611)
joshuali925 Dec 5, 2024
e9aec0d
Address comments.
ArgusLi Dec 5, 2024
4e884c5
[Discover] use roundUp when converting timestamp for PPL (#8935)
joshuali925 Dec 5, 2024
f85a93b
Reformat to use POM.
ArgusLi Dec 5, 2024
1ff3841
first sidebar test
Dec 6, 2024
9d5d6e9
fix syntax error uncaught by eslint
Dec 6, 2024
a7f1901
query support
Dec 6, 2024
baa41c2
[Workspace]Fix error toasts in sample data page (#8842)
wanglam Dec 6, 2024
f160f23
fix: update the osd-plugin-generator template to reference the correc…
angle943 Dec 6, 2024
8109e97
[Discover] Support custom logic to insert time filter based on datase…
joshuali925 Dec 6, 2024
aef8530
finish index pattern and index tests
Dec 9, 2024
ea07e12
Remove should be visible as each command should be a simple get.
ArgusLi Dec 6, 2024
36cb9b0
complete first test suite
Dec 9, 2024
af95d24
update whitespaces
Dec 9, 2024
a2595ec
fix filter for value broken index tests
Dec 9, 2024
1f778c6
fix: support imports without extensions in cypress webpack build (#8993)
d-rowe Dec 2, 2024
b8b90b7
finish second test suite
Dec 10, 2024
85273e3
Added release notes for 1.3.20 (#9033)
bshien Dec 11, 2024
ba78349
finish testid-140
Dec 12, 2024
1053910
merge main
Dec 12, 2024
9ecaedc
sidebar
Dec 13, 2024
aa289a9
update tests to cope with the helper message breaking them
Dec 13, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions changelogs/fragments/8611.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
fix:
- Bump url to 0.11.4 ([#8611](https://github.com/opensearch-project/OpenSearch-Dashboards/pull/8611))
2 changes: 2 additions & 0 deletions changelogs/fragments/8739.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
fix:
- [Workspace] [Bug] Check if workspaces exists when creating saved objects. ([#8739](https://github.com/opensearch-project/OpenSearch-Dashboards/pull/8739))
2 changes: 2 additions & 0 deletions changelogs/fragments/8842.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
fix:
- [Workspace]Fix error toasts in sample data page ([#8842](https://github.com/opensearch-project/OpenSearch-Dashboards/pull/8842))
2 changes: 2 additions & 0 deletions changelogs/fragments/8886.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
chore:
- Bump `@opensearch-project/opensearch` from 2.9.0 to 2.13.0 ([#8886](https://github.com/opensearch-project/OpenSearch-Dashboards/pull/8886))
2 changes: 2 additions & 0 deletions changelogs/fragments/8888.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
refactor:
- [Workspace] Isolate objects based on workspace when calling get/bulkGet ([#8888](https://github.com/opensearch-project/OpenSearch-Dashboards/pull/8888))
2 changes: 2 additions & 0 deletions changelogs/fragments/8900.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
feat:
- Optimize recent items and filter out items whose workspace is deleted ([#8900](https://github.com/opensearch-project/OpenSearch-Dashboards/pull/8900))
2 changes: 0 additions & 2 deletions changelogs/fragments/8915.yml

This file was deleted.

2 changes: 2 additions & 0 deletions changelogs/fragments/8919.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
fix:
- Change some of the http link in settings page to https link ([#8919](https://github.com/opensearch-project/OpenSearch-Dashboards/pull/8919))
2 changes: 2 additions & 0 deletions changelogs/fragments/8920.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
feat:
- [workspace]support search dev tools by its category name ([#8920](https://github.com/opensearch-project/OpenSearch-Dashboards/pull/8920))
2 changes: 2 additions & 0 deletions changelogs/fragments/8926.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
chore:
- Update cypress to v12 ([#8926](https://github.com/opensearch-project/OpenSearch-Dashboards/pull/8926))
2 changes: 2 additions & 0 deletions changelogs/fragments/8930.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
fix:
- Update saved search initialization logic to use current query instead of default query ([#8930](https://github.com/opensearch-project/OpenSearch-Dashboards/pull/8930))
2 changes: 2 additions & 0 deletions changelogs/fragments/8932.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
feat:
- Support custom logic to insert time filter based on dataset type ([#8932](https://github.com/opensearch-project/OpenSearch-Dashboards/pull/8932))
2 changes: 2 additions & 0 deletions changelogs/fragments/8935.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
fix:
- Use roundUp when converting timestamp for PPL ([#8935](https://github.com/opensearch-project/OpenSearch-Dashboards/pull/8935))
2 changes: 2 additions & 0 deletions changelogs/fragments/8951.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
fix:
- SQL syntax highlighting double quotes ([#8951](https://github.com/opensearch-project/OpenSearch-Dashboards/pull/8951))
2 changes: 2 additions & 0 deletions changelogs/fragments/8993.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
fix:
- Support imports without extensions in cypress webpack build ([#8993](https://github.com/opensearch-project/OpenSearch-Dashboards/pull/8993))
66 changes: 66 additions & 0 deletions cypress.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
/*
* Copyright OpenSearch Contributors
* SPDX-License-Identifier: Apache-2.0
*/

import { defineConfig } from 'cypress';
import webpackPreprocessor from '@cypress/webpack-preprocessor';

module.exports = defineConfig({
retries: 2,
defaultCommandTimeout: 60000,
requestTimeout: 60000,
responseTimeout: 60000,
viewportWidth: 2000,
viewportHeight: 1320,
env: {
openSearchUrl: 'http://localhost:9200',
SECURITY_ENABLED: false,
AGGREGATION_VIEW: false,
username: 'admin',
password: 'myStrongPassword123!',
ENDPOINT_WITH_PROXY: false,
MANAGED_SERVICE_ENDPOINT: false,
VISBUILDER_ENABLED: true,
DATASOURCE_MANAGEMENT_ENABLED: false,
ML_COMMONS_DASHBOARDS_ENABLED: true,
WAIT_FOR_LOADER_BUFFER_MS: 0,
},
e2e: {
baseUrl: 'http://localhost:5601',
specPattern: 'cypress/integration/**/*_spec.{js,jsx,ts,tsx}',
testIsolation: false,
setupNodeEvents,
},
});

function setupNodeEvents(
on: Cypress.PluginEvents,
config: Cypress.PluginConfigOptions
): Cypress.PluginConfigOptions {
const { webpackOptions } = webpackPreprocessor.defaultOptions;

/**
* By default, cypress' internal webpack preprocessor doesn't allow imports without file extensions.
* This makes our life a bit hard since if any file in our testing dependency graph has an import without
* the .js extension our cypress build will fail.
*
* This extra rule relaxes this a bit by allowing imports without file extension
* ex. import module from './module'
*/
webpackOptions!.module!.rules.unshift({
test: /\.m?js/,
resolve: {
enforceExtension: false,
},
});

on(
'file:preprocessor',
webpackPreprocessor({
webpackOptions,
})
);

return config;
}
21 changes: 0 additions & 21 deletions cypress.json

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
/*
* Copyright OpenSearch Contributors
* SPDX-License-Identifier: Apache-2.0
*/

import { MiscUtils } from '@opensearch-dashboards-test/opensearch-dashboards-test-library';
import { DataExplorerPage } from '../../utils/dashboards/data_explorer/data_explorer_page.po';

const miscUtils = new MiscUtils(cy);

describe('filter for value spec', () => {
beforeEach(() => {
cy.localLogin(Cypress.env('username'), Cypress.env('password'));
miscUtils.visitPage('app/data-explorer/discover');
cy.getNewSearchButton().click();
});
describe('filter actions in table field', () => {
describe('index pattern dataset', () => {
// filter actions should exist for DQL
it('DQL', () => {
DataExplorerPage.selectIndexPatternDataset('DQL');
DataExplorerPage.setSearchRelativeDateRange('15', 'Years ago');
DataExplorerPage.checkDocTableFirstFieldFilterForAndOutButton(true);
DataExplorerPage.checkDocTableFirstFieldFilterForButtonFiltersCorrectField();
DataExplorerPage.checkDocTableFirstFieldFilterOutButtonFiltersCorrectField();
});
// filter actions should exist for Lucene
it('Lucene', () => {
DataExplorerPage.selectIndexPatternDataset('Lucene');
DataExplorerPage.setSearchRelativeDateRange('15', 'Years ago');
DataExplorerPage.checkDocTableFirstFieldFilterForAndOutButton(true);
DataExplorerPage.checkDocTableFirstFieldFilterForButtonFiltersCorrectField();
DataExplorerPage.checkDocTableFirstFieldFilterOutButtonFiltersCorrectField();
});
// filter actions should not exist for SQL
it('SQL', () => {
DataExplorerPage.selectIndexPatternDataset('OpenSearch SQL');
DataExplorerPage.checkDocTableFirstFieldFilterForAndOutButton(false);
});
// filter actions should not exist for PPL
it('PPL', () => {
DataExplorerPage.selectIndexPatternDataset('PPL');
DataExplorerPage.setSearchRelativeDateRange('15', 'Years ago');
DataExplorerPage.checkDocTableFirstFieldFilterForAndOutButton(false);
});
});
describe('index dataset', () => {
// filter actions should not exist for SQL
it('SQL', () => {
DataExplorerPage.selectIndexDataset(
'OpenSearch SQL',
"I don't want to use the time filter"
);
DataExplorerPage.checkDocTableFirstFieldFilterForAndOutButton(false);
});
// filter actions should not exist for PPL
it('PPL', () => {
DataExplorerPage.selectIndexDataset('PPL', "I don't want to use the time filter");
DataExplorerPage.checkDocTableFirstFieldFilterForAndOutButton(false);
});
});
});
});
Loading