Skip to content
This repository has been archived by the owner on Mar 13, 2024. It is now read-only.

Commit

Permalink
Cypress/E2E: Fix more unreads position with scroll spec (#6422)
Browse files Browse the repository at this point in the history
  • Loading branch information
Joseph Baylon authored Sep 11, 2020
1 parent 566edc0 commit 9810f38
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
// Stage: @prod
// Group: @channel_settings

import * as TIMEOUTS from '../../fixtures/timeouts';

describe('Channel settings', () => {
let mainUser;
let otherUser;
Expand Down Expand Up @@ -61,7 +63,7 @@ describe('Channel settings', () => {
});

// # Scroll down in channels list until last created channel is visible
cy.get(`#sidebarItem_${channelNames[lastChannelIndex]}`).scrollIntoView();
cy.get(`#sidebarItem_${channelNames[lastChannelIndex]}`).scrollIntoView({duration: TIMEOUTS.TWO_SEC});
});

// * After scrolling is complete, "More Unreads" pill should be visible at the top of the channels list
Expand All @@ -81,7 +83,7 @@ describe('Channel settings', () => {
});

// # Scroll down in channels list until last created channel is visible
cy.get(`#sidebarItem_${channelNames[firstChannelIndex]}`).scrollIntoView();
cy.get(`#sidebarItem_${channelNames[firstChannelIndex]}`).scrollIntoView({duration: TIMEOUTS.TWO_SEC});
});

// * After scrolling is complete, "More Unreads" pill should not be visible at the top of the channels list
Expand Down

0 comments on commit 9810f38

Please sign in to comment.