From e4d70a54e97551f974a04379817e8baf152fa8d3 Mon Sep 17 00:00:00 2001 From: Akshay Nair Date: Sun, 13 Aug 2023 17:05:06 +0530 Subject: feat: adds applying css properties for instances + adds --cssx-text eval + fixes issues --- tests/signup.spec.ts | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'tests/signup.spec.ts') diff --git a/tests/signup.spec.ts b/tests/signup.spec.ts index 1317049..4764d7f 100644 --- a/tests/signup.spec.ts +++ b/tests/signup.spec.ts @@ -3,6 +3,7 @@ import { waitFor, getByText, getByTestId, + prettyDOM, } from '@testing-library/dom' import '@testing-library/jest-dom' import { delay, loadHTMLFixture } from './util' @@ -33,9 +34,9 @@ describe('signup example', () => { beforeEach(async () => { const $showFormBtn = document.getElementById('show-form-btn')! fireEvent.click($showFormBtn) - await waitFor(() => expect($showFormBtn).not.toBeVisible()) - const $form = document.getElementById('signup-form')! - expect($form).toBeVisible() + await waitFor(() => + expect(document.getElementById('signup-form')).toBeVisible(), + ) await delay(100) // Wait for mounting }) @@ -48,7 +49,7 @@ describe('signup example', () => { const $password = getByTestId(document.body, 'password') $password.value = 'password' - await delay(2000) + await delay(100) // Submit form const $submitBtn = getByText(document.body, 'Submit') -- cgit v1.3.1