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 functional test for sidecar #1141

Merged
merged 3 commits into from
Mar 20, 2024

Conversation

raintygao
Copy link
Collaborator

@raintygao raintygao commented Mar 12, 2024

Description

Add functional test for sidecar.
This functional test should run on the feat-sidecar branch of OSD and dashboard-assistant repo, so checks may fail in CI env.

Following is the recording and result of tests.

recording.mp4

Issues Resolved

Depend on OSD PR: opensearch-project/OpenSearch-Dashboards#5920

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: tygao <tygao@amazon.com>
Signed-off-by: tygao <tygao@amazon.com>
cy.get('.llm-chat-flyout button[aria-label="fullScreen"]').click();
it('should hide back button in takeover fullscreen mode', () => {
//switch to takeover mode for fullscreen
cy.get('[id="sidecarModeIcon"]').click();
Copy link
Collaborator

Choose a reason for hiding this comment

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

Shall we change to cy.get("#sidecarModeIcon")?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I think both ways are OK.

…ar_spec.js

Co-authored-by: Hailong Cui <ihailong@amazon.com>
Signed-off-by: tygao <tygao@amazon.com>
@raintygao raintygao merged commit 4cd28e2 into opensearch-project:main Mar 20, 2024
43 checks passed
opensearch-trigger-bot bot pushed a commit that referenced this pull request Mar 20, 2024
* add function test for sidecar

Signed-off-by: tygao <tygao@amazon.com>

* test: update tests for sidecar integration

Signed-off-by: tygao <tygao@amazon.com>

* Update cypress/integration/plugins/dashboards-assistant/chatbot_sidecar_spec.js

Co-authored-by: Hailong Cui <ihailong@amazon.com>
Signed-off-by: tygao <tygao@amazon.com>

---------

Signed-off-by: tygao <tygao@amazon.com>
Co-authored-by: Hailong Cui <ihailong@amazon.com>
(cherry picked from commit 4cd28e2)
opensearch-trigger-bot bot pushed a commit that referenced this pull request Mar 20, 2024
* add function test for sidecar

Signed-off-by: tygao <tygao@amazon.com>

* test: update tests for sidecar integration

Signed-off-by: tygao <tygao@amazon.com>

* Update cypress/integration/plugins/dashboards-assistant/chatbot_sidecar_spec.js

Co-authored-by: Hailong Cui <ihailong@amazon.com>
Signed-off-by: tygao <tygao@amazon.com>

---------

Signed-off-by: tygao <tygao@amazon.com>
Co-authored-by: Hailong Cui <ihailong@amazon.com>
(cherry picked from commit 4cd28e2)
raintygao added a commit that referenced this pull request Mar 20, 2024
* add function test for sidecar

Signed-off-by: tygao <tygao@amazon.com>

* test: update tests for sidecar integration

Signed-off-by: tygao <tygao@amazon.com>

* Update cypress/integration/plugins/dashboards-assistant/chatbot_sidecar_spec.js

Co-authored-by: Hailong Cui <ihailong@amazon.com>
Signed-off-by: tygao <tygao@amazon.com>

---------

Signed-off-by: tygao <tygao@amazon.com>
Co-authored-by: Hailong Cui <ihailong@amazon.com>
(cherry picked from commit 4cd28e2)

Co-authored-by: tygao <tygao@amazon.com>
raintygao added a commit that referenced this pull request Mar 20, 2024
* add function test for sidecar

Signed-off-by: tygao <tygao@amazon.com>

* test: update tests for sidecar integration

Signed-off-by: tygao <tygao@amazon.com>

* Update cypress/integration/plugins/dashboards-assistant/chatbot_sidecar_spec.js

Co-authored-by: Hailong Cui <ihailong@amazon.com>
Signed-off-by: tygao <tygao@amazon.com>

---------

Signed-off-by: tygao <tygao@amazon.com>
Co-authored-by: Hailong Cui <ihailong@amazon.com>
(cherry picked from commit 4cd28e2)

Co-authored-by: tygao <tygao@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.

4 participants