Commit 7f27ab47 authored by Marcelo Rivera's avatar Marcelo Rivera

(fix): footer e2e tests

1 merge request!528(feat): Minds Pro
Pipeline #83860938 passed with stages
in 38 minutes and 8 seconds
......@@ -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-footer .m-proChannelFooter__link').should('be.visible').each(($el, $index) => {
cy.get('.m-proChannel__footer .m-proChannelFooter .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);
});
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment