Commit 76dd3659 authored by Brian Hatchet's avatar Brian Hatchet :speech_balloon:

Fixing before

1 merge request!499Feat/closed channels 602
Pipeline #77426646 running with stages
......@@ -3,10 +3,14 @@ context('Groups', () => {
cy.getCookie('minds_sess')
.then((sessionCookie) => {
if (sessionCookie === null) {
cy.login(true);
return cy.login(true);
}
});
})
});
beforeEach(()=> {
cy.preserveCookies();
});
it('should create and edit a group', () => {
......@@ -60,7 +64,9 @@ context('Groups', () => {
it('should be able to toggle conversation and comment on it', () => {
cy.get('m-group--sidebar-markers li:nth-child(3)').contains('test group').click();
cy.get("m-group--sidebar-markers li:contains('test group')")
.first()
.click();
// toggle the conversation
......
......@@ -3,11 +3,15 @@ context('Newsfeed', () => {
cy.getCookie('minds_sess')
.then((sessionCookie) => {
if (sessionCookie === null) {
cy.login(true);
return cy.login(true);
}
});
})
beforeEach(()=> {
cy.preserveCookies();
});
it('should post an activity picking hashtags from the dropdown', () => {
cy.get('minds-newsfeed-poster').should('be.visible');
......
......@@ -6,12 +6,13 @@ context('Remind', () => {
cy.getCookie('minds_sess')
.then((sessionCookie) => {
if (sessionCookie === null) {
cy.login(true);
return cy.login(true);
}
});
});
beforeEach(() => {
cy.preserveCookies();
//nav to channel
cy.get('.m-v2-topbar__Top minds-avatar div')
.click();
......
......@@ -3,11 +3,15 @@ context('Topbar', () => {
cy.getCookie('minds_sess')
.then((sessionCookie) => {
if (sessionCookie === null) {
cy.login(true);
return cy.login(true);
}
});
});
beforeEach(()=> {
cy.preserveCookies();
});
it("clicking on the dropdown on the right should allow to go to the user's channel", () => {
// open the menu
cy.get('m-user-menu .m-user-menu__Anchor').click();
......
......@@ -14,11 +14,15 @@ context('Wire', () => {
cy.getCookie('minds_sess')
.then((sessionCookie) => {
if (sessionCookie === null) {
cy.login(true);
return cy.login(true);
}
});
});
beforeEach(()=> {
cy.preserveCookies();
});
it('should allow a user to send a wire to another user', () => {
// Visit users page.
cy.visit('/minds');
......
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