This repository was archived by the owner on Aug 7, 2024. It is now read-only.
Description Has this bug been raised before?
Where did you find this bug?
Github Actions
Version of BioDrop (for example "v1.2.3")
v2.84.0
Description
The search testcase in tests/search.spec.js is failing consistently or timing out in GitHub Actions
Code
test ( "Search term persistence after navigating back" , async ( { page } ) => {
// 1. Perform search
await page . goto ( "/search" ) ;
const input = page . locator ( "[name='keyword']" ) ;
const searchTerm = "eddiejaoude" ;
await input . fill ( searchTerm ) ;
// 2. Navigate to profile
await expect ( page ) . toHaveURL ( "/search?userSearchParam=eddiejaoude" ) ;
await page . waitForLoadState ( "networkidle" ) ;
await page . locator ( "h3:has-text('eddiejaoude')" ) . click ( ) ;
await page . waitForLoadState ( "networkidle" ) ;
// 3. Check if the profile is displayed
await expect ( page ) . toHaveURL ( "/eddiejaoude" ) ;
await expect ( page . locator ( "h1" ) ) . toHaveText ( "Eddie Jaoude" ) ;
// 4. Go back and check that search term is still here
await page . goBack ( ) ;
const inputAfterNavigation = page . locator ( "[name='keyword']" ) ;
const inputFieldValue = await inputAfterNavigation . inputValue ( ) ;
expect ( inputFieldValue ) . toBe ( searchTerm ) ;
} ) ;
To Reproduce
Screenshots
Timeout Error
Do you want to work on this issue?
No
If you want to work on this issue...
No response
Reactions are currently unavailable
Has this bug been raised before?
Where did you find this bug?
Github Actions
Version of BioDrop (for example "v1.2.3")
v2.84.0
Description
The search testcase in tests/search.spec.js is failing consistently or timing out in GitHub Actions
Code
BioDrop/tests/search.spec.js
Lines 69 to 93 in d56e68c
To Reproduce
Screenshots
Timeout Error
Do you want to work on this issue?
No
If you want to work on this issue...
No response