Dataview search e2e Tests#1468
Conversation
There was a problem hiding this comment.
Could you undo the changes in the Cypress env
There was a problem hiding this comment.
Could you not make any changes to the env file that is outside the e2e-testing folder
|
|
||
| postDetails: '[data-qa="post-details"]', | ||
|
|
||
| searchInput: '[data-qa="search-form__search-posts"]', |
There was a problem hiding this comment.
Could you refer to the previous comment about the [data-qa] attribute
615d3a0 to
bd33e69
Compare
bd33e69 to
ba03d4f
Compare
| search_and_verify_results_with_special_characters(keyword) { | ||
| const specialCharacterRegex = /^[!@#$%^&*()_+\-=\[\]{};':"\\|,.<>\/?`~]+$/; | ||
| if (!specialCharacterRegex.test(keyword)) { | ||
| throw new Error('Provided keyword does not contain only special characters'); |
There was a problem hiding this comment.
Is this message consistent with what is returned in the mzima application
|
The tests seem to be failing for the last changes pushed. |
| .contains('Automated Title Response'); | ||
| } | ||
| search_and_verify_results(keyword) { | ||
| this.click_data_view_btn(); |
There was a problem hiding this comment.
Before searching for the keyword, could you add a post with the keyword so that the post exists that you are searching for.
There was a problem hiding this comment.
do you mean to create a new post in the test block? because there are posts with the election keyword before now...
There was a problem hiding this comment.
An update has been made for this, kindly review @shakirandagire
Wrote e2e automation tests to handle;