Skip to content

[Banner Plugin] Cypress e2e tests for banner plugin - #1820

Merged
zhongnansu merged 19 commits into
opensearch-project:mainfrom
sidwang42:main
Aug 12, 2025
Merged

[Banner Plugin] Cypress e2e tests for banner plugin#1820
zhongnansu merged 19 commits into
opensearch-project:mainfrom
sidwang42:main

Conversation

@sidwang42

@sidwang42 sidwang42 commented Aug 5, 2025

Copy link
Copy Markdown
Contributor

Description

Add end to end testing for the banner plugin.

Screenshot

Passing the tests locally:

image image

Issues Resolved

#1813

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: Sid Wang <sidwang@amazon.com>
Signed-off-by: Sid Wang <sidwang@amazon.com>
@sidwang42 sidwang42 changed the title [Banner Plugin] Basic Cypress e2e tests [Banner Plugin] Cypress e2e tests for banner plugin Aug 6, 2025
@sidwang42
sidwang42 force-pushed the main branch 2 times, most recently from 1456618 to b77cbda Compare August 6, 2025 20:47
Signed-off-by: Sid Wang <sidwang@amazon.com>

@zhongnansu zhongnansu left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

banner CI is failing?

@yujin-emma yujin-emma left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

LGTM, thanks for the hard work

@zhongnansu zhongnansu left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Core plugins tests should be under this path similar to data-source-management plugin, could you check and move? Also if you moved there, will it be picked up automatically by any existing github action workflow?
https://github.com/opensearch-project/opensearch-dashboards-functional-test/tree/main/cypress/integration/core-opensearch-dashboards/opensearch-dashboards/datasource-management-plugin

export const BANNER_TIMEOUT = 60000;

export const BANNER_SELECTORS = {
BANNER_CONTAINER: '#pluginGlobalBanner',

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I see in this PR you are switching to use class instead of id, once that's merged, do you need update here? opensearch-project/OpenSearch-Dashboards#10324 (review)

Signed-off-by: Sid Wang <sidwang@amazon.com>
Signed-off-by: Sid Wang <sidwang@amazon.com>

@zhongnansu zhongnansu left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

lgtm, merge after CI is passing

@zhongnansu
zhongnansu merged commit 5503fd8 into opensearch-project:main Aug 12, 2025
67 of 72 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants