Skip to content

Commit

Permalink
UI Tests: Fix failing publication test
Browse files Browse the repository at this point in the history
  • Loading branch information
claravox authored and lwesterhof committed Aug 28, 2024
1 parent a3467bc commit 5936bd7
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
11 changes: 9 additions & 2 deletions tests/step_defs/ui/test_ui_publication.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,14 @@ def ui_check_version_provenance_vault(browser):
action_log_rows = browser.find_by_css('.list-group-item-action')

# Chronological (backward) status changes
prov_statuses = ['Published', 'Approved for publication', 'Added metadata: related datapackage', 'Submitted for publication', 'Secured in vault', 'Accepted for vault', 'Submitted for vault']
prov_statuses = ['Published',
'Approved for publication',
'Removed metadata: additional lab',
'Added metadata: related datapackage',
'Submitted for publication',
'Secured in vault',
'Accepted for vault',
'Submitted for vault']
for index in range(0, len(prov_statuses)):
assert action_log_rows[index].value.find(prov_statuses[index]) != -1

Expand Down Expand Up @@ -243,7 +250,7 @@ def ui_data_package_approve(browser):
@then(parsers.parse('the data package status is "{status}"'))
def ui_data_package_status(browser, status):
for _i in range(30):
if browser.is_text_present(status, wait_time=3):
if browser.is_text_present(status, wait_time=4):
return True
browser.reload()

Expand Down
2 changes: 1 addition & 1 deletion tests/step_defs/ui/test_ui_statistics.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def ui_statistics_group_view(browser, group):

@when('export statistics button is clicked')
def ui_statistics_export(browser):
# For now prevent downloading on windows platforn
# For now prevent downloading on windows platform
if os.name == "nt":
return
# Only click when not in Windows
Expand Down

0 comments on commit 5936bd7

Please sign in to comment.