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
871
Issues
871
List
Boards
Labels
Service Desk
Milestones
Merge Requests
46
Merge Requests
46
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
Compare Revisions
464aed5e85582bf51eb0e629545b0d75f6086893...23bdb9ed649c7cf398ac099b72c74779001a8454
Source
23bdb9ed649c7cf398ac099b72c74779001a8454
Select Git revision
...
Target
464aed5e85582bf51eb0e629545b0d75f6086893
Select Git revision
Compare
Commits (2)
Minor fixes for flake
· 504115f8
Ben Hayward
authored
40 minutes ago
504115f8
Merge branch 'fix/e2e-tests-staging' of gitlab.com:minds/front into fix/e2e-tests-staging
· 23bdb9ed
Ben Hayward
authored
34 minutes ago
23bdb9ed
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
13 additions
and
14 deletions
+13
-14
cypress/integration/blogs.spec.js
cypress/integration/blogs.spec.js
+6
-6
cypress/integration/comments/comment-permissions.spec.js
cypress/integration/comments/comment-permissions.spec.js
+0
-3
cypress/integration/registration.spec.js
cypress/integration/registration.spec.js
+1
-0
cypress/integration/remind.spec.js
cypress/integration/remind.spec.js
+6
-5
No files found.
cypress/integration/blogs.spec.js
View file @
23bdb9ed
...
...
@@ -3,14 +3,14 @@
context
(
'
Blogs
'
,
()
=>
{
before
(()
=>
{
cy
.
getCookie
(
'
minds_sess
'
)
.
then
((
sessionCookie
)
=>
{
if
(
sessionCookie
===
null
)
{
return
cy
.
login
(
true
);
}
});
.
then
((
sessionCookie
)
=>
{
if
(
sessionCookie
===
null
)
{
return
cy
.
login
(
true
);
}
});
});
beforeEach
(()
=>
{
beforeEach
(()
=>
{
cy
.
preserveCookies
();
cy
.
server
();
cy
.
route
(
'
POST
'
,
'
**/api/v1/blog/new
'
).
as
(
'
postBlog
'
);
...
...
This diff is collapsed.
Click to expand it.
cypress/integration/comments/comment-permissions.spec.js
View file @
23bdb9ed
...
...
@@ -7,9 +7,6 @@ context.skip('Comment Permissions', () => {
before
(()
=>
{
cy
.
overrideFeatureFlag
({
'
allow-comments-toggle
'
:
true
,
});
//make a post new.
cy
.
getCookie
(
'
minds_sess
'
)
.
then
((
sessionCookie
)
=>
{
...
...
This diff is collapsed.
Click to expand it.
cypress/integration/registration.spec.js
View file @
23bdb9ed
...
...
@@ -31,6 +31,7 @@ context('Registration', () => {
cy
.
location
(
'
pathname
'
).
should
(
'
eq
'
,
'
/login
'
);
cy
.
login
(
false
,
username
,
password
);
cy
.
deleteUser
(
username
,
password
);
cy
.
clearCookies
();
})
it
(
'
should allow a user to register
'
,
()
=>
{
...
...
This diff is collapsed.
Click to expand it.
cypress/integration/remind.spec.js
View file @
23bdb9ed
...
...
@@ -14,11 +14,11 @@ context('Remind', () => {
beforeEach
(()
=>
{
cy
.
preserveCookies
();
cy
.
server
();
cy
.
route
(
"
POST
"
,
"
**/api/v2/newsfeed/remind/*
"
).
as
(
"
postRemind
"
);
});
it
(
'
should allow a user to remind their post
'
,
()
=>
{
cy
.
server
();
cy
.
route
(
"
POST
"
,
"
**/api/v2/newsfeed/remind/*
"
).
as
(
"
postRemind
"
);
//post
cy
.
post
(
"
test!!
"
);
...
...
@@ -29,13 +29,14 @@ context('Remind', () => {
//fill out text box in modal
cy
.
get
(
'
.m-modal-remind-composer textarea
'
)
.
focus
()
.
clear
()
.
type
(
remindText
);
//post remind.
cy
.
get
(
'
.m-modal-remind-composer-send i
'
)
.
click
();
cy
.
wait
(
'
@postRemind
'
).
then
((
xhr
)
=>
{
.
click
()
.
wait
(
'
@postRemind
'
).
then
((
xhr
)
=>
{
expect
(
xhr
.
status
).
to
.
equal
(
200
);
expect
(
xhr
.
response
.
body
.
status
).
to
.
equal
(
"
success
"
);
});
...
...
This diff is collapsed.
Click to expand it.