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
842
Issues
842
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
7f27ab47
Commit
7f27ab47
authored
2 days ago
by
Marcelo Rivera
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(fix): footer e2e tests
parent
315a039e
epic/minds-pro
1 merge request
!528
(feat): Minds Pro
Pipeline
#83860938
passed with stages
in 38 minutes and 8 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
page.spec.js
cypress/integration/pro/page.spec.js
+5
-5
No files found.
cypress/integration/pro/page.spec.js
View file @
7f27ab47
...
...
@@ -123,7 +123,7 @@ context('Pro Page', () => {
});
it
(
'
should load the feed tab
'
,
()
=>
{
cy
.
route
(
"
GET
"
,
"
**
!/api/v2/pro/content/!*!
/activities/top**
"
).
as
(
"
activities
"
);
cy
.
route
(
"
GET
"
,
"
**
/api/v2/pro/content/*
/activities/top**
"
).
as
(
"
activities
"
);
cy
.
contains
(
'
Feed
'
)
.
click
()
.
wait
(
'
@activities
'
).
then
((
xhr
)
=>
{
...
...
@@ -132,7 +132,7 @@ context('Pro Page', () => {
})
it
(
'
should load the videos tab
'
,
()
=>
{
cy
.
route
(
"
GET
"
,
"
**
!/api/v2/pro/content/!*!
/videos/top**
"
).
as
(
"
videos
"
);
cy
.
route
(
"
GET
"
,
"
**
/api/v2/pro/content/*
/videos/top**
"
).
as
(
"
videos
"
);
cy
.
contains
(
'
Videos
'
)
.
click
()
.
wait
(
'
@videos
'
).
then
((
xhr
)
=>
{
...
...
@@ -169,7 +169,7 @@ context('Pro Page', () => {
})
it
(
'
should load the articles tab
'
,
()
=>
{
cy
.
route
(
"
GET
"
,
"
**
!/api/v2/pro/content/!*!
/blogs/top**
"
).
as
(
"
blogs
"
);
cy
.
route
(
"
GET
"
,
"
**
/api/v2/pro/content/*
/blogs/top**
"
).
as
(
"
blogs
"
);
cy
.
contains
(
'
Articles
'
)
.
click
()
.
wait
(
'
@blogs
'
).
then
((
xhr
)
=>
{
...
...
@@ -178,7 +178,7 @@ context('Pro Page', () => {
})
it
(
'
should load the groups tab
'
,
()
=>
{
cy
.
route
(
"
GET
"
,
"
**
!/api/v2/pro/content/!*!
/groups/top**
"
).
as
(
"
groups
"
);
cy
.
route
(
"
GET
"
,
"
**
/api/v2/pro/content/*
/groups/top**
"
).
as
(
"
groups
"
);
cy
.
contains
(
'
Groups
'
)
.
click
()
.
wait
(
'
@groups
'
).
then
((
xhr
)
=>
{
...
...
@@ -191,7 +191,7 @@ context('Pro Page', () => {
cy
.
get
(
'
.m-proChannelFooter__text
'
).
contains
(
'
This is the footer text
'
);
// should have footer links
cy
.
get
(
'
.m-proChannel__footer .m-pro
--channel-f
ooter .m-proChannelFooter__link
'
).
should
(
'
be.visible
'
).
each
((
$el
,
$index
)
=>
{
cy
.
get
(
'
.m-proChannel__footer .m-pro
ChannelF
ooter .m-proChannelFooter__link
'
).
should
(
'
be.visible
'
).
each
((
$el
,
$index
)
=>
{
expect
(
$el
.
text
()).
to
.
contain
(
footerLinks
[
$index
].
label
);
expect
(
$el
.
attr
(
'
href
'
)).
to
.
contain
(
footerLinks
[
$index
].
link
);
});
...
...
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