Skip to content

Commit

Permalink
add permission to allow copying to clipboard (#1281)
Browse files Browse the repository at this point in the history
Add permission for copying link to clipboard in cypress/integration/core-opensearch-dashboards/opensearch-dashboards/dashboard_share_copy_link_test.js
Issues Resolved

resolves #1081

Signed-off-by: Qingyang(Abby) Hu <[email protected]>
  • Loading branch information
abbyhu2000 authored May 7, 2024
1 parent 9262706 commit 64959fa
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 4 additions & 1 deletion cypress.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@
"WAIT_FOR_LOADER_BUFFER_MS": 0,
"DASHBOARDS_ASSISTANT_ENABLED": false,
"WORKSPACE_ENABLED": false,
"SAVED_OBJECTS_PERMISSION_ENABLED": false
"SAVED_OBJECTS_PERMISSION_ENABLED": false,
"browserPermissions": {
"clipboard": "allow"
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,13 @@
* SPDX-License-Identifier: Apache-2.0
*/
import { STACK_MANAGEMENT_PATH } from '../../../utils/dashboards/constants';
import { CURRENT_TENANT } from '../../../utils/commands';

if (Cypress.env('SECURITY_ENABLED')) {
describe('Copy Link functionality working', () => {
it('Tests the link copys and can be routed to in Safari', () => {
CURRENT_TENANT.newTenant = 'global';

cy.visit(STACK_MANAGEMENT_PATH);
cy.waitForLoader();
cy.getElementByTestId('toggleNavButton').click();
Expand Down

0 comments on commit 64959fa

Please sign in to comment.