Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
2b282c6d
Commit
2b282c6d
authored
May 27, 2020
by
nicolasdular
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use data attribute for storage counter spec
parent
c34113e5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
ee/app/assets/javascripts/storage_counter/components/app.vue
ee/app/assets/javascripts/storage_counter/components/app.vue
+1
-1
ee/spec/frontend/storage_counter/components/app_spec.js
ee/spec/frontend/storage_counter/components/app_spec.js
+2
-2
No files found.
ee/app/assets/javascripts/storage_counter/components/app.vue
View file @
2b282c6d
...
...
@@ -60,7 +60,7 @@ export default {
<div
class=
"row py-0"
>
<div
class=
"col-sm-12"
>
<strong>
{{
s__
(
'
UsageQuota|Storage usage:
'
)
}}
</strong>
<span
class=
"js-
total-usage"
>
<span
data-testid=
"
total-usage"
>
{{
namespace
.
totalUsage
}}
<gl-link
:href=
"helpPagePath"
...
...
ee/spec/frontend/storage_counter/components/app_spec.js
View file @
2b282c6d
...
...
@@ -52,7 +52,7 @@ describe('Storage counter app', () => {
wrapper
.
vm
.
$nextTick
()
.
then
(()
=>
{
expect
(
wrapper
.
find
(
'
.js-total-usage
'
).
text
()).
toContain
(
expect
(
wrapper
.
find
(
"
[data-testid='total-usage']
"
).
text
()).
toContain
(
withRootStorageStatistics
.
totalUsage
,
);
})
...
...
@@ -70,7 +70,7 @@ describe('Storage counter app', () => {
wrapper
.
vm
.
$nextTick
()
.
then
(()
=>
{
expect
(
wrapper
.
find
(
'
.js-total-usage
'
).
text
()).
toContain
(
'
N/A
'
);
expect
(
wrapper
.
find
(
"
[data-testid='total-usage']
"
).
text
()).
toContain
(
'
N/A
'
);
})
.
then
(
done
)
.
catch
(
done
.
fail
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment