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
863
Issues
863
List
Boards
Labels
Service Desk
Milestones
Merge Requests
44
Merge Requests
44
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
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
d0658450
Commit
d0658450
authored
8 minutes ago
by
Ben Hayward
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Moved here
parent
b7e52bb8
feat/boost-e2e-1632
1 merge request
!480
[Sprint/KiltedKoala](feat): Added in boost e2e tests
Pipeline
#75044597
canceled with stages
in 1 minute and 46 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
93 additions
and
0 deletions
+93
-0
boost-creator.spec.js
cypress/integration/boost/boost-creator.spec.js
+93
-0
No files found.
cypress/integration/boost/boost-creator.spec.js
0 → 100644
View file @
d0658450
context
(
'
Boost Creation
'
,
()
=>
{
const
duplicateError
=
"
There's already an ongoing boost for this entity
"
;
const
postContent
=
"
Test boost, please reject...
"
+
Math
.
random
().
toString
(
36
).
substring
(
8
);
beforeEach
(()
=>
{
cy
.
login
(
true
);
cy
.
wait
(
5000
);
cy
.
get
(
'
.m-v2-topbar__Top minds-avatar div
'
)
.
click
();
cy
.
scrollTo
(
'
top
'
);
cy
.
wait
(
2000
);
});
it
(
'
should redirect a user to buy tokens when clicked
'
,
()
=>
{
openTopModal
();
cy
.
wait
(
5000
);
cy
.
get
(
'
.m-boost--creator-section-row .m-boost--creator-section-payment m-boost--creator-payment-methods > ul > li:nth-child(3) > i
'
)
.
click
();
cy
.
wait
(
1000
);
cy
.
location
(
'
pathname
'
,
{
timeout
:
30000
})
.
should
(
'
eq
'
,
`/token`
);
});
it
(
'
should allow a user to make an offchain boost for 5000 tokens
'
,
()
=>
{
cy
.
post
(
postContent
);
cy
.
wait
(
2000
);
openTopModal
();
cy
.
get
(
'
.m-boost--creator-section-amount input
'
)
.
type
(
5000
);
cy
.
get
(
'
m-overlay-modal > div.m-overlay-modal > m-boost--creator button
'
)
.
click
();
cy
.
wait
(
5000
);
cy
.
get
(
'
.m-overlay-modal
'
)
.
should
(
'
not.be.visible
'
)
});
it
(
'
should error if the boost is a duplicate
'
,
()
=>
{
openTopModal
();
cy
.
wait
(
5000
);
cy
.
get
(
'
.m-boost--creator-section-amount input
'
)
.
type
(
5000
);
cy
.
wait
(
1000
);
cy
.
get
(
'
m-overlay-modal > div.m-overlay-modal > m-boost--creator button
'
)
.
click
();
cy
.
wait
(
3000
);
cy
.
get
(
'
m-boost--creator > div > section > div > div > span
'
)
.
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
'
)
.
click
();
cy
.
wait
(
1000
);
cy
.
get
(
'
m-boost--creator-p2p-search .m-boost--creator-wide-input input
'
)
.
type
(
'
minds
'
);
cy
.
get
(
'
.m-boost--creator-autocomplete--results .m-boost--creator-autocomplete--result-content > span
'
)
.
click
();
});
function
openTopModal
()
{
cy
.
get
(
'
#boost-actions
'
)
.
first
()
.
click
();
cy
.
wait
(
5000
);
}
})
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