aboutsummaryrefslogtreecommitdiff
path: root/tests/signup.spec.ts
diff options
context:
space:
mode:
authorAkshay Nair <phenax5@gmail.com>2023-08-13 17:05:06 +0530
committerAkshay Nair <phenax5@gmail.com>2023-08-13 17:05:06 +0530
commite4d70a54e97551f974a04379817e8baf152fa8d3 (patch)
tree2b2ce59a654e7e50f2ba945ccfe6e494e07e8449 /tests/signup.spec.ts
parentc327a1dfc40b834b31c3488020859223f3583b4c (diff)
downloadcss-everything-e4d70a54e97551f974a04379817e8baf152fa8d3.tar.gz
css-everything-e4d70a54e97551f974a04379817e8baf152fa8d3.zip
feat: adds applying css properties for instances + adds --cssx-text eval + fixes issues
Diffstat (limited to 'tests/signup.spec.ts')
-rw-r--r--tests/signup.spec.ts9
1 files changed, 5 insertions, 4 deletions
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<HTMLInputElement>(document.body, 'password')
$password.value = 'password'
- await delay(2000)
+ await delay(100)
// Submit form
const $submitBtn = getByText(document.body, 'Submit')