Closed noahsalvi closed 1 year ago
When running the tests, it sometimes occurs that the login test fails.
Error: 1) tests/login.spec.ts:3:1 › Login Example ======================================================= Error: expect(received).not.toHaveClass(expected) Expected string: not "touched" Received string: "touched" Call log: - expect.toHaveClass with timeout 5000ms - waiting for getByPlaceholder('password') - locator resolved to <input type="password" name="password" class="touched" …/> - unexpected value "touched" - locator resolved to <input type="password" name="password" class="touched" …/> - unexpected value "touched" - locator resolved to <input type="password" name="password" class="touched" …/> - unexpected value "touched" - locator resolved to <input type="password" name="password" class="touched" …/> - unexpected value "touched" - locator resolved to <input type="password" name="password" class="touched" …/> - unexpected value "touched" - locator resolved to <input type="password" name="password" class="touched" …/> - unexpected value "touched" - locator resolved to <input type="password" name="password" class="touched" …/> - unexpected value "touched" - locator resolved to <input type="password" name="password" class="touched" …/> - unexpected value "touched" 11 | await email.type("max@"); 12 | await password.type("random pass"); > 13 | await expect(password).not.toHaveClass("touched"); | ^ 14 | await expect(email).toHaveClass("touched"); 15 | await expect(button).toBeDisabled(); 16 | at file:///home/runner/work/svelte-use-form/svelte-use-form/tests/login.spec.ts:13:30 Notice: 1 failed tests/login.spec.ts:3:1 › Login Example ======================================================== 3 passed (17s) Error: Process completed with exit code 1.
When running the tests, it sometimes occurs that the login test fails.