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

Add new test suite and workflow for left navigation menu in 2.x #1707

Merged
merged 4 commits into from
Feb 12, 2025

Conversation

FriedhelmWS
Copy link
Contributor

@FriedhelmWS FriedhelmWS commented Feb 11, 2025

Description

Adding specific tests for new left navigation menu, including scenarios with workspace enabled or disabled and enable or disable security.

Issues Resolved

N/A

Check List

  • Commits are signed per the DCO using --signoff

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

Signed-off-by: Owen Wang <owenwyk@amazon.com>
Signed-off-by: Owen Wang <owenwyk@amazon.com>
Comment on lines +181 to +189
if (isWorkspaceEnabled) {
createWorkspace('all').then(() => {
cy.visit(`w/${workspaceId}/app/all_overview`);
validateMenuSection();
});
} else {
cy.visit('app/home');
validateMenuSection();
}
Copy link
Member

Choose a reason for hiding this comment

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

Nice section to test both cases.

@FriedhelmWS FriedhelmWS force-pushed the left-nav-tests-2.x branch 6 times, most recently from 742d731 to 0c82255 Compare February 12, 2025 05:45
Signed-off-by: Owen Wang <owenwyk@amazon.com>
Signed-off-by: Owen Wang <owenwyk@amazon.com>
@SuZhou-Joe SuZhou-Joe merged commit 947aaa0 into opensearch-project:2.x Feb 12, 2025
63 of 70 checks passed
@opensearch-trigger-bot
Copy link
Contributor

The backport to main failed:

The process '/usr/bin/git' failed with exit code 1

To backport manually, run these commands in your terminal:

# Fetch latest updates from GitHub
git fetch
# Create a new working tree
git worktree add .worktrees/backport-main main
# Navigate to the new working tree
cd .worktrees/backport-main
# Create a new branch
git switch --create backport/backport-1707-to-main
# Cherry-pick the merged commit of this pull request and resolve the conflicts
git cherry-pick -x --mainline 1 947aaa0ba49539b249c4a8f39a45e35c37b780bc
# Push it to GitHub
git push --set-upstream origin backport/backport-1707-to-main
# Go back to the original working tree
cd ../..
# Delete the working tree
git worktree remove .worktrees/backport-main

Then, create a pull request where the base branch is main and the compare/head branch is backport/backport-1707-to-main.

opensearch-trigger-bot bot pushed a commit that referenced this pull request Feb 12, 2025
* Add new test suite and workflow for left navigation menu

Signed-off-by: Owen Wang <owenwyk@amazon.com>

* Fix missing config for disable workspace

Signed-off-by: Owen Wang <owenwyk@amazon.com>

* Address comments by adding additional assertion to navigation menu

Signed-off-by: Owen Wang <owenwyk@amazon.com>

* Fix lint issue in dashboards test cases
Signed-off-by: Owen Wang <owenwyk@amazon.com>

---------

Signed-off-by: Owen Wang <owenwyk@amazon.com>
(cherry picked from commit 947aaa0)
FriedhelmWS added a commit to FriedhelmWS/opensearch-dashboards-functional-test that referenced this pull request Feb 12, 2025
…search-project#1707)

* Add new test suite and workflow for left navigation menu

Signed-off-by: Owen Wang <owenwyk@amazon.com>

* Fix missing config for disable workspace

Signed-off-by: Owen Wang <owenwyk@amazon.com>

* Address comments by adding additional assertion to navigation menu

Signed-off-by: Owen Wang <owenwyk@amazon.com>

* Fix lint issue in dashboards test cases
Signed-off-by: Owen Wang <owenwyk@amazon.com>

---------

Signed-off-by: Owen Wang <owenwyk@amazon.com>
(cherry picked from commit 947aaa0)
raintygao pushed a commit that referenced this pull request Feb 17, 2025
…enu (#1710)

* Add new test suite and workflow for left navigation menu

Signed-off-by: Owen Wang <owenwyk@amazon.com>

* Fix missing config for disable workspace
Signed-off-by: Owen Wang <owenwyk@amazon.com>

* Remove tenancy config for left navigation workflow

Signed-off-by: Owen Wang <owenwyk@amazon.com>

* Address comments by adding additional assertion to navigation menu

Signed-off-by: Owen Wang <owenwyk@amazon.com>

* Add new test suite and workflow for left navigation menu in 2.x (#1707)

* Add new test suite and workflow for left navigation menu

Signed-off-by: Owen Wang <owenwyk@amazon.com>

* Fix missing config for disable workspace

Signed-off-by: Owen Wang <owenwyk@amazon.com>

* Address comments by adding additional assertion to navigation menu

Signed-off-by: Owen Wang <owenwyk@amazon.com>

* Fix lint issue in dashboards test cases
Signed-off-by: Owen Wang <owenwyk@amazon.com>

---------

Signed-off-by: Owen Wang <owenwyk@amazon.com>
(cherry picked from commit 947aaa0)

---------

Signed-off-by: Owen Wang <owenwyk@amazon.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants