Skip to content
Next
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Switch to GitLab Next
Sign in / Register
Toggle navigation
Minds Frontend
Project
Project
Details
Activity
Releases
Cycle Analytics
Insights
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Locked Files
Issues
899
Issues
899
List
Boards
Labels
Service Desk
Milestones
Merge Requests
45
Merge Requests
45
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Security & Compliance
Security & Compliance
Dependency List
Packages
Packages
List
Container Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Minds
Minds Frontend
Commits
8a160b09
Commit
8a160b09
authored
14 minutes ago
by
Ben Hayward
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Changes for feedback - updated boost e2e test added data attr
parent
3216ef88
feat/boost-e2e-1632
1 merge request
!480
[Sprint/KiltedKoala](feat): Added in boost e2e tests
Pipeline
#81397062
running with stages
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
5 deletions
+7
-5
boost-creator.spec.js
cypress/integration/boost/boost-creator.spec.js
+6
-4
creator.component.html
src/app/modules/boost/creator/creator.component.html
+1
-1
No files found.
cypress/integration/boost/boost-creator.spec.js
View file @
8a160b09
...
...
@@ -28,7 +28,8 @@ context('Boost Creation', () => {
it
(
'
should redirect a user to buy tokens when clicked
'
,
()
=>
{
openTopModal
();
cy
.
get
(
'
.m-boost--creator-section-row .m-boost--creator-section-payment m-boost--creator-payment-methods > ul > li:nth-child(3) > i
'
)
cy
.
get
(
'
m-boost--creator-payment-methods li h5 span
'
)
.
contains
(
'
Buy Tokens
'
)
.
click
();
cy
.
location
(
'
pathname
'
,
{
timeout
:
30000
})
...
...
@@ -72,14 +73,15 @@ context('Boost Creation', () => {
expect
(
xhr
.
response
.
body
.
status
).
to
.
deep
.
equal
(
"
error
"
);
});
cy
.
get
(
'
m-boost--creator > div > section > div > div > span
'
)
cy
.
get
(
'
[data-cy=error]
'
)
.
contains
(
duplicateError
);
});
it
(
'
should display an error if boost offer receiver has not signed up for rewards
'
,
()
=>
{
openTopModal
();
cy
.
get
(
'
.m-boost--creator-section.m-boost--creator-section-type > ul > li:nth-child(2) > h4
'
)
cy
.
get
(
'
h4
'
)
.
contains
(
'
Offers
'
)
.
click
();
cy
.
get
(
'
m-boost--creator-p2p-search .m-boost--creator-wide-input input
'
)
...
...
@@ -92,7 +94,7 @@ context('Boost Creation', () => {
.
first
()
.
click
({
force
:
true
});
cy
.
get
(
'
m-boost--creator > div > section > div > div > span
'
)
cy
.
get
(
'
[data-cy=error]
'
)
.
contains
(
nonParticipationError
);
});
...
...
This diff is collapsed.
Click to expand it.
src/app/modules/boost/creator/creator.component.html
View file @
8a160b09
...
...
@@ -370,7 +370,7 @@
class=
"m-boost--creator--submit-error"
>
<i
class=
"material-icons"
>
close
</i>
<span>
{{ error }}
</span>
<span
data-cy=
"error"
>
{{ error }}
</span>
</div>
</div>
</section>
...
...
This diff is collapsed.
Click to expand it.
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