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
eafc8465
Commit
eafc8465
authored
Jul 15, 2021
by
Vitaly Slobodin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add test for positive quantity
parent
fd82718c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
1 deletion
+5
-1
ee/app/assets/javascripts/subscriptions/buy_minutes/components/order_summary/summary_details.vue
.../buy_minutes/components/order_summary/summary_details.vue
+1
-1
ee/spec/frontend/subscriptions/buy_minutes/components/order_summary_spec.js
...ubscriptions/buy_minutes/components/order_summary_spec.js
+4
-0
No files found.
ee/app/assets/javascripts/subscriptions/buy_minutes/components/order_summary/summary_details.vue
View file @
eafc8465
...
...
@@ -65,7 +65,7 @@ export default {
<div
class=
"d-flex justify-content-between bold gl-mt-3 gl-mb-3"
>
<div
data-testid=
"selected-plan"
>
{{
sprintf
(
$options
.
i18n
.
selectedPlanText
,
{
selectedPlanText
}
)
}}
<
span
v
-
if
=
"
quantity
> 0
"
data
-
testid
=
"
quantity
"
>
{{
<
span
v
-
if
=
"
quantity
"
data
-
testid
=
"
quantity
"
>
{{
sprintf
(
$options
.
i18n
.
quantity
,
{
quantity
}
)
}}
<
/span
>
<
/div
>
...
...
ee/spec/frontend/subscriptions/buy_minutes/components/order_summary_spec.js
View file @
eafc8465
...
...
@@ -76,6 +76,10 @@ describe('Order Summary', () => {
subscription
:
{
quantity
:
3
},
});
});
it
(
'
renders amount
'
,
()
=>
{
expect
(
wrapper
.
find
(
'
[data-testid="amount"]
'
).
text
()).
toBe
(
'
$30
'
);
});
});
describe
(
'
when quantity is less than or equal to zero
'
,
()
=>
{
...
...
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