1 // Copyright (C) The Arvados Authors. All rights reserved.
3 // SPDX-License-Identifier: AGPL-3.0
5 // ***********************************************************
6 // This example support/component.ts is processed and
7 // loaded automatically before your test files.
9 // This is a great place to put global configuration and
10 // behavior that modifies Cypress.
12 // You can change the location of this file or turn off
13 // automatically serving support files with the
14 // 'supportFile' configuration option.
16 // You can read more here:
17 // https://on.cypress.io/configuration
18 // ***********************************************************
20 // Import commands.js using ES2015 syntax:
23 // Alternatively you can use CommonJS syntax:
24 // require('./commands')
26 import { mount } from 'cypress/react'
28 // Augment the Cypress namespace to include type definitions for
29 // your custom command.
30 // Alternatively, can be defined in cypress/support/component.d.ts
31 // with a <reference path="./component" /> at the top of your spec.
33 // namespace Cypress {
34 // interface Chainable {
35 // mount: typeof mount
40 Cypress.Commands.add('mount', mount)
43 // cy.mount(<MyComponent />)