Skip to content

Commit

Permalink
Marginally more storage selenium coverage.
Browse files Browse the repository at this point in the history
  • Loading branch information
jmchilton committed Jun 16, 2023
1 parent c60f72b commit 2efdb1b
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 3 deletions.
16 changes: 14 additions & 2 deletions client/src/components/Masthead/QuotaMeter.vue
Original file line number Diff line number Diff line change
@@ -1,12 +1,24 @@
<template>
<div>
<div v-if="!hasQuota" class="quota-text d-flex align-items-center">
<b-link v-b-tooltip.hover.left to="/storage" :disabled="isAnonymous" class="ml-auto" :title="title">
<b-link
v-b-tooltip.hover.left
to="/storage"
:disabled="isAnonymous"
class="ml-auto"
:title="title"
data-description="storage dashboard link">
{{ usingString + " " + totalUsageString }}
</b-link>
</div>
<div v-else class="quota-meter d-flex align-items-center">
<b-link v-b-tooltip.hover.left class="quota-progress" :disabled="isAnonymous" to="/storage" :title="title">
<b-link
v-b-tooltip.hover.left
class="quota-progress"
:disabled="isAnonymous"
to="/storage"
:title="title"
data-description="storage dashboard link">
<b-progress :max="100">
<b-progress-bar aria-label="Quota usage" :value="usage" :variant="variant" />
</b-progress>
Expand Down
2 changes: 2 additions & 0 deletions client/src/components/User/DiskUsage/StorageDashboard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ function goToHistoriesOverview() {
<disk-usage-summary class="m-3" />
<icon-card
class="mx-auto mb-3"
data-description="free space card"
:title="texts.freeSpace.title"
:description="texts.freeSpace.description"
:icon="texts.freeSpace.icon"
Expand All @@ -56,6 +57,7 @@ function goToHistoriesOverview() {

<icon-card
class="mx-auto mb-3"
data-description="explore usage card"
:title="texts.explore.title"
:description="texts.explore.description"
:icon="texts.explore.icon"
Expand Down
8 changes: 8 additions & 0 deletions client/src/utils/navigation/navigation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,9 @@ masthead:

logged_in_only: '.loggedin-only'
logged_out_only: '.loggedout-only'
storage_dashboard_link:
selector: 'storage dashboard link'
type: data-description

labels:
# top-level menus
Expand Down Expand Up @@ -323,6 +326,11 @@ history_storage:
selectors:
_: '.history-storage-overview'

storage_dashboard:
selectors:
free_space_link: '[data-description="free space card"] button'
explore_usage_link: '[data-description="explore usage card"] button'

edit_dataset_attributes:
selectors:
database_build_dropdown: '[data-label="Database/Build"]'
Expand Down
15 changes: 14 additions & 1 deletion lib/galaxy_test/selenium/test_history_storage.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,18 @@ def test_history_storage(self):
self.wait_for_history()
self.components.history_panel.storage_overview.wait_for_and_click()
self.components.history_storage._.wait_for_visible()
self.screenshot("history-storage")
self.screenshot("history_storage")
self.components.history_storage._.assert_no_axe_violations_with_impact_of_at_least("critical")

self.home()
self.components.masthead.storage_dashboard_link.wait_for_and_click()
self.screenshot("storage_dashboard")
self.components.storage_dashboard.free_space_link.wait_for_and_click()
self.screenshot("storage_dashboard_manage_free_space_landing")
self.assert_baseline_accessibility()

self.home()
self.components.masthead.storage_dashboard_link.wait_for_and_click()
self.components.storage_dashboard.explore_usage_link.wait_for_and_click()
self.screenshot("storage_dashboard_manage_explore_usage_landing")
self.assert_baseline_accessibility()

0 comments on commit 2efdb1b

Please sign in to comment.