Given
I visit "http://localhost:3000/"
5s 942ms
And
I feature toggle "ENHANCED_SEARCH" to "true"
66ms
Then
I wait for 6 seconds
6s 4ms
Then
element with "id" "searchBoxEnhanced" should be visible
41ms
When
I click on element
818ms
And
I enter "diab"
249ms
And
"span" element with "text" "Type 1" should be visible
1s 788ms
And
element with "data-testid" "clear-button" should be visible
48ms
When
I click on element
593ms
Then
"span" element with "text" "diabetes" should not be visible
10ms
Then
element with "id" "searchBoxEnhanced" should be visible
22ms
When
I click on element
594ms
Then
"div" element with "text" "Search for topics, conditions or drugs" should be visible
26ms
And
"div" element with "text" "Recent and saved searches will show here"
26ms
And
element with "id" "searchBoxEnhanced" should be visible
49ms
And
I enter "diabetes"
67ms
And
"span" element with "text" "Type 1" should be visible
892ms
And
"div" element with "text" "drug" should be visible
46ms
And
"div" element with "text" "topic" should be visible
27ms
And
"span" element with "text" "Principles of management" should be visible
27ms
When
I click on element
927ms
Then
url should contain "Diabetes"
447ms
Then
I visit "http://localhost:3000/"
2s 335ms
And
I feature toggle "ENHANCED_SEARCH" to "true"
242ms
Then
I wait for 6 seconds
6s 6ms
Then
element with "id" "searchBoxEnhanced" should be visible
42ms
When
I click on element
591ms
Then
"button" element with "text" "Recent" should be visible
23ms
Then
"button" element with "text" "Saved" should be visible
28ms
Then
"span" element with "text" "Principles of management" should be visible
30s 129ms
Show Error +
TimeoutError: Waiting element with locator to be visible
Wait timed out after 30128ms
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 30128ms
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