0.1.3 • Published 11 months ago

@avenue3-dev/cypress-mantine-helpers v0.1.3

Weekly downloads
-
License
MIT
Repository
github
Last release
11 months ago

Cypress Mantine Helpers

MIT CI NPM

A collection of custom Cypress commands to work with Mantine components.

Installation

pnpm add @avenue3-dev/cypress-mantine-helpers

Usage

Add the following to your cypress/support/commands.ts file:

import '@avenue3-dev/cypress-mantine-helpers'

Commands

mantineSelect

Selects an option or options from a Mantine Select, MultiSelect, or Autocomplete component.

// Select a single option by the label
cy.get('[data-testid="select"]').mantineSelect('Option 1')

// Select multiple options by the labels
cy.get('[data-testid="multiselect"]').mantineSelect(['Option 1', 'Option 2'])

// Select single by value
cy.get('[data-testid="select"]').mantineSelect('option-1')

// Select multiple by values
cy.get('[data-testid="multiselect"]').mantineSelect(['option-1', 'option-2'])
0.1.3

11 months ago

0.1.2

1 year ago

0.1.1

1 year ago