import * as React from "react" import { composeStories } from "@storybook/testing-react" import { mount } from "@cypress/react" import * as stories from "./Status.stories" const { Default } = composeStories(stories) describe('Status tests', () => { it('Default', () => { mount() cy.get('.indicator-status *').last().contains('Aprovado') cy.get('.indicator-status .rounded-full') }) it('Variants', () => { mount() cy.get('.indicator-status').find('.rounded-full').should('have.class', 'bg-inverted-2') mount() cy.get('.indicator-status').find('.rounded-full').should('have.class', 'bg-success') mount() cy.get('.indicator-status').find('.rounded-full').should('have.class', 'bg-warning') mount() cy.get('.indicator-status').find('.rounded-full').should('have.class', 'bg-danger') mount() cy.get('.indicator-status').find('.rounded-full').should('have.class', 'bg-danger-light') }) it('Inverted', () => { mount() cy.get('.indicator-status *').first().contains('Aprovado') }) })