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

Commit 3ae8899

Browse files
committed
Fixes, attempt to fix user spec flakiness
1 parent 76523d4 commit 3ae8899

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

cypress/integration/user/new_user_spec.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,6 @@ describe('post username creation redirects', () => {
129129
setUsernameIsVisible();
130130
saveUsername();
131131
cy.url().should('include', '/payments/private');
132-
cy.get('[data-cy="channel-profile-card"]').should('be.visible');
133132
});
134133

135134
it('should take user to explore if no previously viewed page', () => {

cypress/integration/user_spec.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,8 @@ const publicAuthoredThreads = threads.filter(thread => {
1414
});
1515

1616
describe('User View', () => {
17-
beforeEach(() => {
18-
cy.visit(`/users/${user.username}`);
19-
});
20-
2117
it('should render', () => {
18+
cy.visit(`/users/${user.username}`);
2219
cy.get('[data-cy="user-view"]').should('be.visible');
2320
cy.contains(user.username);
2421
cy.contains(user.name);
@@ -31,6 +28,8 @@ describe('User View', () => {
3128
});
3229

3330
it('should list the public communities a user is a member of, including their rep in that community', () => {
31+
cy.visit(`/users/${user.username}`);
32+
cy.get('[data-cy="user-view"]').should('be.visible');
3433
const usersCommunities = data.usersCommunities.filter(
3534
({ userId }) => userId === user.id
3635
);

0 commit comments

Comments
 (0)