1 // Copyright (C) The Arvados Authors. All rights reserved.
3 // SPDX-License-Identifier: AGPL-3.0
5 import React from 'react';
6 import { CopyToClipboardAction } from './copy-to-clipboard-action';
8 describe('CopyToClipboardAction', () => {
13 onClick: cy.stub().as('onClick'),
14 href: 'https://collections.example.com/c=zzzzz-4zz18-k0hamvtwyit6q56/t=xxxxxxxx/LIMS/1.html',
18 it('should render properly and handle click', () => {
20 cy.mount(<CopyToClipboardAction {...props} />);
23 cy.contains('Copy link to clipboard').click();
26 cy.get('@onClick').should('have.been.called');