Skip to content
This repository was archived by the owner on Oct 11, 2022. It is now read-only.

Commit 773d287

Browse files
committed
Fix channel membership spec
1 parent 3306a70 commit 773d287

File tree

1 file changed

+6
-21
lines changed

1 file changed

+6
-21
lines changed

cypress/integration/channel/view/membership_spec.js

Lines changed: 6 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -33,14 +33,14 @@ const leave = () => {
3333
.last()
3434
.click();
3535

36-
cy.get('[data-cy="channel-join-button"]').contains(`Join channel`);
36+
cy.get('[data-cy="channel-join-button"]').contains(`Join`);
3737
};
3838

3939
const join = () => {
4040
cy.get('[data-cy="channel-join-button"]')
4141
.last()
4242
.should('be.visible')
43-
.contains('Join channel');
43+
.contains('Join');
4444

4545
cy.get('[data-cy="channel-join-button"]')
4646
.last()
@@ -54,8 +54,8 @@ describe('logged out channel membership', () => {
5454
cy.visit(`/${community.slug}/${publicChannel.slug}`);
5555
});
5656

57-
it('should render join button that links to login view', () => {
58-
cy.get('[data-cy="channel-login-join-button"]').should('be.visible');
57+
it('should render community join button that links to login view', () => {
58+
cy.get('[data-cy="profile-join-button"]').should('be.visible');
5959
});
6060
});
6161

@@ -79,23 +79,8 @@ describe('channel profile as non-member', () => {
7979
);
8080
});
8181

82-
it('should render join channel button', () => {
83-
join();
84-
leave();
85-
});
86-
});
87-
88-
describe('channel profile as owner', () => {
89-
beforeEach(() => {
90-
cy.auth(ownerInChannelId).then(() =>
91-
cy.visit(`/${community.slug}/${publicChannel.slug}`)
92-
);
93-
});
94-
95-
it('should render settings button', () => {
96-
cy.get('[data-cy="channel-settings-button"]')
97-
.should('be.visible')
98-
.contains('Settings');
82+
it('should render join community button', () => {
83+
cy.get('[data-cy="profile-join-button"]').should('be.visible');
9984
});
10085
});
10186

0 commit comments

Comments
 (0)