mirror of
https://github.com/nottinghamtec/PyRIGS.git
synced 2026-10-01 18:28:19 +00:00
fix(dependencies+tests): update EoL/vulnerable dependencies and improve test stability
* Upgrade Python from 3.10 to 3.12 * Update frontend dependencies, replace node-sass with sass
This commit is contained in:
@@ -58,9 +58,13 @@ class AssetList(BasePage):
|
||||
def search(self):
|
||||
old_assets = self.find_elements(*self._asset_item_locator)
|
||||
self.find_element(*self._go_button_locator).click()
|
||||
WebDriverWait(self.driver, 10).until(
|
||||
expected_conditions.staleness_of(old_assets[0])
|
||||
)
|
||||
if len(old_assets) > 0:
|
||||
WebDriverWait(self.driver, 10).until(
|
||||
expected_conditions.staleness_of(old_assets[0])
|
||||
)
|
||||
else:
|
||||
import time
|
||||
time.sleep(2)
|
||||
|
||||
|
||||
def filter(self):
|
||||
|
||||
@@ -83,6 +83,7 @@ def test_search(logged_in_browser, admin_user, live_server, test_asset, test_ass
|
||||
page.status_selector.toggle()
|
||||
assert not page.status_selector.is_open
|
||||
page.filter()
|
||||
time.sleep(2)
|
||||
assert len(page.assets) == 2
|
||||
|
||||
page.category_selector.toggle()
|
||||
@@ -91,6 +92,7 @@ def test_search(logged_in_browser, admin_user, live_server, test_asset, test_ass
|
||||
page.category_selector.close()
|
||||
assert not page.category_selector.is_open
|
||||
page.filter()
|
||||
time.sleep(2)
|
||||
assert len(page.assets) == 2
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user