Given
I visit "http://localhost:3000/viewTopic?etgAccess=true&guidelinePage=Addiction%20Medicine&topicfile=alcohol-drug-problems&guidelinename=auto§ionId=c_AMG_What-is-covered-in-the-Addiction-guidelines_topic_2#c_AMG_What-is-covered-in-the-Addiction-guidelines_topic_2"
5s 852ms
Then
I wait for 6 seconds
6s 3ms
Given
element with "href" "section-c_AMG_What-is-covered-in-the-Addiction-guidelines_topic_2" and "class" "favourite dartfav"
58ms
Then
I should see element has background image "tg_favouritestar_empty"
7ms
When
I click on element
575ms
Then
I wait for 5 seconds
5s 16ms
Then
popup should say "Your favourite is added."
12ms
When
I confirm popup
27ms
Then
I should see element has background image "tg_favouritestar_filled"
37ms
Given
I visit "http://localhost:3000/viewTopic?etgAccess=true&guidelinePage=Antibiotic&topicfile=bartonella-infections&guidelinename=Antibiotic§ionId=toc_d1e49#toc_d1e49"
2s 15ms
Then
I wait for 5 seconds
5s 4ms
Given
element with "class" "favourite dartfav"
67ms
Then
I should see element has background image "tg_favouritestar_empty"
4ms
Given
element with "class" "favourite dartfav"
41ms
When
I click on element
598ms
Then
I wait for 5 seconds
5s 2ms
Then
popup should say "Your favourite is added."
2ms
When
I confirm popup
5ms
Given
element with "text" "Favourites"
39ms
When
I scroll to element
16ms
Given
element with "text" "Favourites"
70ms
And
I click on element
735ms
Then
"a" element with "text" "What is covered in the Addiction guidelines?" should be visible
158ms
And
"a" element with "text" "Bartonella infections" should be visible
77ms
Given
element with "class" "favDelete"
178ms
When
I click on element
691ms
Then
I wait for 5 seconds
5s 16ms
Then
popup should say "Are you sure you want to delete?"
7ms
When
I confirm popup
4ms
Given
element with "class" "favDelete"
230ms
When
I click on element
589ms
Then
I wait for 5 seconds
5s 15ms
Then
popup should say "Are you sure you want to delete?"
2ms
When
I confirm popup
36ms