TEST CASES FOR SEARCH FIELD
A search field is the common field of any website. Hope below some test cases are helpful for you !
- Check the name of search field is correct
- Check whether the the search field can be clicked or not.
- Check whether it is able to type or enter in the search field or not.
- Check placeholder is added to the search field.
- Check the cursor appears after clicking the search icon.
- Check that when the user pastes or copy in the search field.
- Check that when the user can type any alphanumeric, special characters in the search field.
- Check the search function return correct results for the valid keywords.
- Enter any one character in the search field and click on the Search button/press Enter key.
- Enter string more than the max length in search field.
- Enter a string in the search field with spaces (before the string, after the string, and in between) and verify the results.
- Without entering character in the search field then click on the Search button.
- Click in the search field and press Enter key.
- Check the time systems return search results.
- Check the search results are in the correct order as requirement.
- Check if suggestions are shown when adding keywords to the search field.
- Try to drag and drop images, videos or another file in the search field and check the result