Add tests
mdubus opened this issue · comments
The following tests should be added :
No MeiliSearch running:
- If no MeiliSearch is running, it should ask to start MeiliSearch
No API key required:
- If no API key is required, it should display the help cards view
- If a user clicks on the
Api key
button, it should display a message telling that no API key is required
API Key required:
- If an API key is required but none is provided, it should ask for an API Key
- If a wrong API key is provided, it should display a message telling that the provided API key is wrong
- If a correct API key is provided, it should display the help cards view
- If a user clicks on the
Api Key
button, it should display an input with its API key inside - If a user clicks on the
Api Key
button and edit the API key field with a wrong API key, it should display a message telling that the API key is wrong
Indexes:
- If there is an index without documents, it should inform that the current index is empty
- If a user clicks on the indexes select, it should display the list of indexes
- If there is an index, it should display its documents
- If there is more than one index, it should display the first one in localeCompare order (on the uid)
- If a user clicks on an other index, it should display the documents of this new index
Search tests:
- If a user searches for a document, it should return its corresponding match
- If a user searches for a document but there is no result, it should display a message telling that there is no match
- If there is more that 20 results, it should display the
Load more
button. - If the user clicks on the
Load more
button, it should load the 20 next documents
Interface tests:
- If a user clicks on the
?
button, it should open the help center - If a card has more than 6 fields, it should display a
Show more
button - If the user clicks on the
Show more
button, it should display all the fields - If there is a json field, it should display a
json
button - If the users clicks of the
json
button, it should display a json - If there is an array field, it should display an
array
button - If the users clicks of the
array
button, it should display an array
Closing as this is done 🎉