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
843
Issues
843
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
Commits
f5cdab03
Commit
f5cdab03
authored
57 minutes ago
by
Ben Hayward
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update
parent
19ac9cb1
fix/e2e-tests-staging
1 merge request
!566
WIP: [Sprint/NuancedNumbat](fix) E2E tests for staging and production #1948
Pipeline
#83884356
canceled with stages
in 17 minutes and 10 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
15 deletions
+4
-15
comment-permissions.spec.js
cypress/integration/comments/comment-permissions.spec.js
+2
-12
commands.js
cypress/support/commands.js
+1
-1
features.service.ts
src/app/services/features.service.ts
+1
-2
No files found.
cypress/integration/comments/comment-permissions.spec.js
View file @
f5cdab03
...
...
@@ -7,20 +7,10 @@ context('Comment Permissions', () => {
before
(()
=>
{
//make a post new.
cy
.
overrideFeatureFlag
({
'
blockchain_creditcard
'
:
true
,
'
suggested-users
'
:
true
,
'
helpdesk
'
:
true
,
'
top-feeds
'
:
true
,
'
es-feeds
'
:
true
,
'
allow-comments-toggle
'
:
true
,
'
permissions
'
:
true
,
'
wire-multi-currency
'
:
true
,
'
dark-mode
'
:
true
,
'
pro
'
:
true
'
allow-comments-toggle
'
:
false
,
});
//make a post new.
cy
.
getCookie
(
'
minds_sess
'
)
.
then
((
sessionCookie
)
=>
{
if
(
sessionCookie
===
null
)
{
...
...
This diff is collapsed.
Click to expand it.
cypress/support/commands.js
View file @
f5cdab03
...
...
@@ -145,7 +145,7 @@ Cypress.Commands.add('newUser', (username = '', password = '') => {
});
Cypress
.
Commands
.
add
(
'
preserveCookies
'
,
()
=>
{
Cypress
.
Cookies
.
preserveOnce
(
'
staging
'
,
'
minds_sess
'
,
'
mwa
'
,
'
XSRF-TOKEN
'
);
Cypress
.
Cookies
.
preserveOnce
(
'
staging
'
,
'
minds_sess
'
,
'
mwa
'
,
'
XSRF-TOKEN
'
,
'
staging-features
'
);
});
/**
...
...
This diff is collapsed.
Click to expand it.
src/app/services/features.service.ts
View file @
f5cdab03
...
...
@@ -22,10 +22,9 @@ export class FeaturesService {
// Inverted check. Useful for *mIfFeature
return
!
this
.
has
(
feature
.
substring
(
1
));
}
const
overrides
=
JSON
.
parse
(
atob
(
this
.
cookie
.
get
(
'
staging-features
'
)));
if
(
feature
in
overrides
)
{
return
true
;
return
overrides
[
feature
]
;
}
if
(
typeof
this
.
_features
[
feature
]
===
'
undefined
'
)
{
...
...
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