Commit 3065c379 authored by Brian Hatchet's avatar Brian Hatchet :speech_balloon:

CR changes

1 merge request!499Feat/closed channels 602
Pipeline #78028340 passed with stages
in 42 minutes and 15 seconds
......@@ -96,13 +96,11 @@ context('Blogs', () => {
cy.get('.m-button--submit').click({ force: true }); // TODO: Investigate why disabled flag is being detected
cy.wait('@postBlog').then((xhr) => {
cy.log(xhr);
expect(xhr.status).to.equal(200);
expect(xhr.response.body.status).to.equal("success");
});
cy.wait('@getBlog').then((xhr) => {
cy.log(xhr);
expect(xhr.status).to.equal(200);
expect(xhr.response.body.status).to.equal("success");
expect(xhr.response.body).to.have.property("blog");
......
......@@ -70,7 +70,7 @@ context('Comment Threads', () => {
cy.get(postCommentButton)
.first()
.click();
cy.get(commentContent).contains(testMessage[2])
cy.get(commentContent).contains(testMessage[2]);
//Add the third level of comments
......
......@@ -14,6 +14,9 @@ context('Groups', () => {
it('should create and edit a group', () => {
cy.server();
cy.route("POST", "**/api/v1/groups/group*").as("postGroup");
cy.get('m-group--sidebar-markers li:first-child').contains('New group').click();
cy.location('pathname').should('eq', '/groups/create');
......@@ -37,6 +40,10 @@ context('Groups', () => {
cy.get('.m-groups-save > button').contains('Create').click();
cy.wait('@postCreate').then((xhr) => {
expect(xhr.status).to.equal(200);
expect(xhr.response.body).to.equal({ status: 'success' });
});
cy.get('.m-groupInfo__name').contains('test');
cy.get('.m-groupInfo__description').contains('This is a test');
......@@ -78,8 +85,6 @@ context('Groups', () => {
cy.get('minds-groups-profile-conversation m-comments__tree minds-textarea .m-editor').type('lvl 1 comment');
cy.get('minds-groups-profile-conversation m-comments__tree a.m-post-button').click();
cy.wait(500);
// comment should appear on the list
cy.get('minds-groups-profile-conversation m-comments__tree > m-comments__thread .m-commentBubble__message').contains('lvl 1 comment');
......
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