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

[Workspace] Add functional test for workspace overview page #1246

Merged
merged 5 commits into from
Apr 30, 2024

Conversation

Hailong-am
Copy link
Collaborator

Description

Add functional test for workspace overview page

Issues Resolved

opensearch-project/OpenSearch-Dashboards#6583

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.

@Hailong-am Hailong-am changed the title Add functional test for workspace overview page [Workspace] Add functional test for workspace overview page Apr 29, 2024
@@ -42,7 +42,9 @@ if (Cypress.env('WORKSPACE_ENABLED')) {
'workspaceForm-workspaceFeatureVisibility-OpenSearch Dashboards'
).check({ force: true });
cy.get('[id$="discover"]').uncheck({ force: true });
cy.getElementByTestId('workspaceForm-bottomBar-createButton').click();
cy.getElementByTestId('workspaceForm-bottomBar-createButton').click({
Copy link
Member

Choose a reason for hiding this comment

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

Nit: just curious why we need to add force: true, is it being covered by other elements?

Copy link
Collaborator Author

@Hailong-am Hailong-am Apr 29, 2024

Choose a reason for hiding this comment

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

covered by
image when doing test in local

Copy link
Collaborator

@wanglam wanglam Apr 29, 2024

Choose a reason for hiding this comment

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

Seems the root cause of this toast is CSP restriction. Could we create a separate issue and add related config like OSD cypress workflow?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

create a issue #1252 to track this.

Signed-off-by: Hailong Cui <[email protected]>
Signed-off-by: Hailong Cui <[email protected]>
Signed-off-by: Hailong Cui <[email protected]>
Signed-off-by: Hailong Cui <[email protected]>
Signed-off-by: Hailong Cui <[email protected]>
Copy link
Collaborator

@wanglam wanglam left a comment

Choose a reason for hiding this comment

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

LGTM

@Hailong-am Hailong-am merged commit 1b19f50 into opensearch-project:main Apr 30, 2024
37 of 41 checks passed
opensearch-trigger-bot bot pushed a commit that referenced this pull request Apr 30, 2024
* workspace overview

Signed-off-by: Hailong Cui <[email protected]>

* update create workspace

Signed-off-by: Hailong Cui <[email protected]>

* address review comments

Signed-off-by: Hailong Cui <[email protected]>

* Add assertion

Signed-off-by: Hailong Cui <[email protected]>

* fix workspacd name

Signed-off-by: Hailong Cui <[email protected]>

---------

Signed-off-by: Hailong Cui <[email protected]>
(cherry picked from commit 1b19f50)
SuZhou-Joe pushed a commit that referenced this pull request Apr 30, 2024
…1255)

* workspace overview

Signed-off-by: Hailong Cui <[email protected]>

* update create workspace

Signed-off-by: Hailong Cui <[email protected]>

* address review comments

Signed-off-by: Hailong Cui <[email protected]>

* Add assertion

Signed-off-by: Hailong Cui <[email protected]>

* fix workspacd name

Signed-off-by: Hailong Cui <[email protected]>

---------

Signed-off-by: Hailong Cui <[email protected]>
(cherry picked from commit 1b19f50)

Co-authored-by: Hailong Cui <[email protected]>
LDrago27 pushed a commit to LDrago27/opensearch-dashboards-functional-test that referenced this pull request May 3, 2024
…ch-project#1246)

* workspace overview

Signed-off-by: Hailong Cui <[email protected]>

* update create workspace

Signed-off-by: Hailong Cui <[email protected]>

* address review comments

Signed-off-by: Hailong Cui <[email protected]>

* Add assertion

Signed-off-by: Hailong Cui <[email protected]>

* fix workspacd name

Signed-off-by: Hailong Cui <[email protected]>

---------

Signed-off-by: Hailong Cui <[email protected]>
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