Given
I visit "http://localhost:3000/"
2s 579ms
And
I feature toggle "ENHANCED_SEARCH" to "true"
4s 348ms
Then
I wait for 6 seconds
6s 7ms
Then
element with "id" "searchBoxEnhanced" should be visible
30ms
When
I click on element
633ms
And
I enter "diab"
69ms
And
"span" element with "text" "Type 1" should be visible
1s 773ms
And
element with "data-testid" "clear-button" should be visible
20ms
When
I click on element
684ms
Then
"span" element with "text" "diabetes" should not be visible
18ms
Then
element with "id" "searchBoxEnhanced" should be visible
24ms
When
I click on element
600ms
Then
"div" element with "text" "Search for topics, conditions or drugs" should be visible
24ms
And
"div" element with "text" "Recent and saved searches will show here"
20ms
And
element with "id" "searchBoxEnhanced" should be visible
17ms
And
I enter "diabetes"
92ms
And
"span" element with "text" "Type 1" should be visible
897ms
And
"div" element with "text" "drug" should be visible
24ms
And
"div" element with "text" "topic" should be visible
46ms
And
"span" element with "text" "Principles of management" should be visible
28ms
When
I click on element
796ms
Then
url should contain "Diabetes"
314ms
Then
I visit "http://localhost:3000/"
1s 540ms
And
I feature toggle "ENHANCED_SEARCH" to "true"
735ms
Then
I wait for 6 seconds
6s 10ms
Then
element with "id" "searchBoxEnhanced" should be visible
56ms
When
I click on element
580ms
Then
"button" element with "text" "Recent" should be visible
31ms
Then
"button" element with "text" "Saved" should be visible
38ms
Then
"span" element with "text" "Principles of management" should be visible
30s 57ms
Show Error +
TimeoutError: Waiting element with locator to be visible
Wait timed out after 30057ms
at C:\agent\_work\20\s\node_modules\selenium-webdriver\lib\webdriver.js:901:17
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
TimeoutError: Waiting element with locator to be visible
Wait timed out after 30057ms
at C:\agent\_work\20\s\node_modules\selenium-webdriver\lib\webdriver.js:901:17
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
Then
element with "id" "searchBoxEnhanced" should be visible
< 1ms
When
I click on element
< 1ms
And
I enter "paracetamol"
< 1ms
Then
I wait for 2 seconds
< 1ms
And
"b" element with "text" "paracetamol" should be visible
< 1ms
And
"div" element with "text" "drug" should be visible
< 1ms
And
"div" element with "text" "topic" should be visible
< 1ms
And
"span" element with "text" "immediate-release preparations" should be visible
< 1ms
When
I click on element
< 1ms
Then
url should contain "Toxicology%20and%20Toxinology"
< 1ms
Then
I visit "http://localhost:3000/"
< 1ms
And
I feature toggle "ENHANCED_SEARCH" to "true"
< 1ms
Then
I wait for 6 seconds
< 1ms
Then
element with "id" "searchBoxEnhanced" should be visible
< 1ms
When
I click on element
< 1ms
Then
"button" element with "text" "Recent" should be visible
< 1ms
Then
"button" element with "text" "Saved" should be visible
< 1ms
Then
"span" element with "text" "Principles of management" should be visible
< 1ms
Then
"span" element with "text" "immediate-release preparations" should be visible
< 1ms