Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found

Target

Select target project
  • omadrid/front
  • minds/front
  • joe59/front
  • markharding/front
  • eiennohi/front
  • edgebal/front
  • msantang78/front
  • bhayward93/front
  • xorgy/front
  • duyquoc/front
  • benhayward.ben/front
  • mnurzia/front
  • priestd09/front
  • dknunn/front
  • Yersinia/front
  • literalpie/front
  • maruthi-adithya/front
  • javanick/front
  • juanmsolaro/front
  • ascenderking/front
  • fabiolalombardim/front
  • jim-toth/front
  • Shivathanu/front
  • pestixaba/front
  • project_connection/front
  • mul53/front
  • iamonuwa/front
  • manishoo/front
  • namesty/front
  • AaronTheBruce/front
  • bedriguler/front
  • th2tran/front
  • jun784/front
  • mdstevens044/front
  • CodingNagger/front
  • heenachauhan201/front
  • diazairic/front
  • m994/front
  • webprodev/minds_front
  • chaoukiammar/front
  • benn7/front
  • ung1807/front
  • vinliao/front-patch-1
  • suhailkakar/front
  • theokeist/minds-blog
45 results
Show changes
Commits on Source (2)
......@@ -2,7 +2,6 @@
* @author Ben Hayward
* @desc E2E testing for Minds Pro's pages.
*/
context('Pro Page', () => {
const topBar = '.m-proChannel__topbar';
......@@ -10,29 +9,24 @@ context('Pro Page', () => {
before(() => {
cy.clearCookies();
cy.getCookie('minds_sess')
.then((sessionCookie) => {
if (sessionCookie === null) {
return cy.login(true);
}
});
.then((sessionCookie) => {
if (sessionCookie === null) {
return cy.login(true);
}
});
cy.visit(`/pro/${Cypress.env().username}`);
cy.get(topBar);
});
beforeEach(()=> {
cy.server();
cy.route("GET", "**/api/v2/pro/channel/*/content**").as("content");
cy.preserveCookies();
cy.visit(`/pro/${Cypress.env().username}`);
cy.get(topBar);
});
it('should load the feed tab', () => {
cy.route("GET", "**/api/v2/feeds/channel/*/activities/top**").as("activities");
cy.contains('Feed')
.click()
.wait('@content').then((xhr) => {
expect(xhr.status).to.equal(200);
})
.wait('@activities').then((xhr) => {
expect(xhr.status).to.equal(200);
});
......@@ -42,9 +36,6 @@ context('Pro Page', () => {
cy.route("GET", "**/api/v2/feeds/channel/*/videos/top**").as("videos");
cy.contains('Videos')
.click()
.wait('@content').then((xhr) => {
expect(xhr.status).to.equal(200);
})
.wait('@videos').then((xhr) => {
expect(xhr.status).to.equal(200);
});
......@@ -54,9 +45,6 @@ context('Pro Page', () => {
cy.route("GET", "**/api/v2/feeds/channel/*/images/top**").as("images");
cy.contains('Images')
.click()
.wait('@content').then((xhr) => {
expect(xhr.status).to.equal(200);
})
.wait('@images').then((xhr) => {
expect(xhr.status).to.equal(200);
});
......@@ -66,9 +54,6 @@ context('Pro Page', () => {
cy.route("GET", "**/api/v2/feeds/channel/*/blogs/top**").as("blogs");
cy.contains('Articles')
.click()
.wait('@content').then((xhr) => {
expect(xhr.status).to.equal(200);
})
.wait('@blogs').then((xhr) => {
expect(xhr.status).to.equal(200);
});
......@@ -78,9 +63,6 @@ context('Pro Page', () => {
cy.route("GET", "**/api/v2/feeds/channel/*/groups/top**").as("groups");
cy.contains('Groups')
.click()
.wait('@content').then((xhr) => {
expect(xhr.status).to.equal(200);
})
.wait('@groups').then((xhr) => {
expect(xhr.status).to.equal(200);
});
......