Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tests/protein-search.test.tsx > ProteinSearch > 1 test fails on expect(input?.classList.contains("is-invalid")).true; #8

Open
TerkaSlan opened this issue Oct 1, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@TerkaSlan
Copy link
Contributor

Expected behavior:

  • the input element contains "is-invalid" class

Actual behavior:

  • the test fails:
 FAIL  tests/protein-search.test.tsx > ProteinSearch > 1
AssertionError: expected false to be true

- Expected
+ Received

- true
+ false

 ❯ tests/protein-search.test.tsx:51:42
     49|         await new Promise((r) => setTimeout(r, 5000));
     50|
     51|         expect(input?.classList.contains("is-invalid")).true;
       |                                          ^
     52|
     53|         const span = container.querySelector('.input-group-text');

Repro steps:
cd UI & npm test

Note:
The test is not functional and as such is currently supressed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant