Skip to content

Commit

Permalink
settings fixed
Browse files Browse the repository at this point in the history
Signed-off-by: Kawika Avilla <kavilla414@gmail.com>
  • Loading branch information
kavilla committed May 28, 2022
1 parent 6eea38b commit 741a9ce
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 11 deletions.
10 changes: 6 additions & 4 deletions cypress/integration/with-security/helpers/generate_data.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,12 @@ describe('Generating BWC test data with security', () => {
it('adds advanced settings', () => {
miscUtils.visitPage('app/management/opensearch-dashboards/settings');
cy.get('[data-test-subj="advancedSetting-editField-theme:darkMode"]').click();
cy.get('[data-test-subj="advancedSetting-editField-timeline:default_columns"]')
.clear()
.type('4');
cy.get('[data-test-subj="advancedSetting-editField-timeline:max_buckets"]').clear().type('4');
cy.get('[data-test-subj="advancedSetting-editField-timeline:default_columns"]').type(
'{selectAll}4'
);
cy.get('[data-test-subj="advancedSetting-editField-timeline:max_buckets"]').type(
'{selectAll}4'
);
cy.get('[data-test-subj="advancedSetting-editField-defaultRoute"]')
.clear()
.type('/app/opensearch_dashboards_overview#/');
Expand Down
11 changes: 6 additions & 5 deletions cypress/integration/without-security/helpers/generate_data.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,15 @@ describe('Generating BWC test data without security', () => {
before(() => {
miscUtils.visitPage('app');
});

it('adds advanced settings', () => {
miscUtils.visitPage('app/management/opensearch-dashboards/settings');
cy.get('[data-test-subj="advancedSetting-editField-theme:darkMode"]').click();
cy.get('[data-test-subj="advancedSetting-editField-timeline:default_columns"]')
.clear()
.type('4');
cy.get('[data-test-subj="advancedSetting-editField-timeline:max_buckets"]').clear().type('4');
cy.get('[data-test-subj="advancedSetting-editField-timeline:default_columns"]').type(
'{selectAll}4'
);
cy.get('[data-test-subj="advancedSetting-editField-timeline:max_buckets"]').type(
'{selectAll}4'
);
cy.get('[data-test-subj="advancedSetting-editField-defaultRoute"]')
.clear()
.type('/app/opensearch_dashboards_overview#/');
Expand Down
Binary file modified cypress/test-data/with-security/osd-2.0.0.tar.gz
Binary file not shown.
Binary file modified cypress/test-data/without-security/osd-2.0.0.tar.gz
Binary file not shown.
5 changes: 3 additions & 2 deletions scripts/bwctest_osd.sh
Original file line number Diff line number Diff line change
Expand Up @@ -286,6 +286,7 @@ function execute_mismatch_tests() {
[ ! -d "$TEST_DIR/cypress" ] && setup_cypress
[ $GENERATE_DATA == "false" ] && execute_tests || generate_test_data
[ $GENERATE_DATA == "false" ] && (( ${#RELEASES_ARRAY[@]} )) && execute_mismatch_tests
echo "Completed BWC tests for $TEST_VERSIONS [$DASHBOARDS_TYPE]"
echo "Total test failures: $TOTAL_TEST_FAILURES"
[ $GENERATE_DATA == "false" ] && echo "Completed BWC tests for $TEST_VERSIONS [$DASHBOARDS_TYPE]"
[ $GENERATE_DATA == "false" ] && echo "Total test failures: $TOTAL_TEST_FAILURES"
[ $GENERATE_DATA == "true" ] && echo "Generate data complete"
exit $TOTAL_TEST_FAILURES

0 comments on commit 741a9ce

Please sign in to comment.