-
Notifications
You must be signed in to change notification settings - Fork 113
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
[Workspace] Add functional test for workspace overview page #1246
Conversation
2666392
to
0d8080a
Compare
@@ -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({ |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
3477dd0
to
081491a
Compare
...core-opensearch-dashboards/opensearch-dashboards/workspace-plugin/workspace_overview.spec.js
Outdated
Show resolved
Hide resolved
...core-opensearch-dashboards/opensearch-dashboards/workspace-plugin/workspace_overview.spec.js
Outdated
Show resolved
Hide resolved
Signed-off-by: Hailong Cui <[email protected]>
Signed-off-by: Hailong Cui <[email protected]>
Signed-off-by: Hailong Cui <[email protected]>
081491a
to
4c041fa
Compare
Signed-off-by: Hailong Cui <[email protected]>
Signed-off-by: Hailong Cui <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
* 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)
…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]>
…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]>
Description
Add functional test for workspace overview page
Issues Resolved
opensearch-project/OpenSearch-Dashboards#6583
Check List
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.