Skip to content

Commit 5c156d1

Browse files
add permission to allow copying to clipboard (#1281) (#1283)
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]> (cherry picked from commit 64959fa) Co-authored-by: Qingyang(Abby) Hu <[email protected]>
1 parent 71116ec commit 5c156d1

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

cypress.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@
2727
"WAIT_FOR_LOADER_BUFFER_MS": 0,
2828
"DASHBOARDS_ASSISTANT_ENABLED": false,
2929
"WORKSPACE_ENABLED": false,
30-
"SAVED_OBJECTS_PERMISSION_ENABLED": false
30+
"SAVED_OBJECTS_PERMISSION_ENABLED": false,
31+
"browserPermissions": {
32+
"clipboard": "allow"
33+
}
3134
}
3235
}

cypress/integration/core-opensearch-dashboards/opensearch-dashboards/dashboard_share_copy_link_test.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,13 @@
33
* SPDX-License-Identifier: Apache-2.0
44
*/
55
import { STACK_MANAGEMENT_PATH } from '../../../utils/dashboards/constants';
6+
import { CURRENT_TENANT } from '../../../utils/commands';
67

78
if (Cypress.env('SECURITY_ENABLED')) {
89
describe('Copy Link functionality working', () => {
910
it('Tests the link copys and can be routed to in Safari', () => {
11+
CURRENT_TENANT.newTenant = 'global';
12+
1013
cy.visit(STACK_MANAGEMENT_PATH);
1114
cy.waitForLoader();
1215
cy.getElementByTestId('toggleNavButton').click();

0 commit comments

Comments
 (0)