Unverified Commit f2c1f32f authored by Mattermost Build's avatar Mattermost Build Committed by GitHub
Browse files

Automated cherry pick of #5957 (#5959)



* Try to fix timezone display mode flakiness

* Removed prod
Co-authored-by: default avatarJoseph Baylon <joseph.baylon@mattermost.com>
parent c19bcd5c
......@@ -7,7 +7,6 @@
// - Use element ID when selecting an element. Create one if none.
// ***************************************************************
// Stage: @prod
// Group: @account_setting
import moment from 'moment-timezone';
......@@ -41,13 +40,15 @@ describe('Account Settings > Display > Timezone Mode', () => {
},
});
// # Create and visit new channel
cy.apiInitSetup({loginAfter: true}).then(({team, channel}) => {
cy.visit(`/${team.name}/channels/${channel.name}`);
// # Create and visit town-square
cy.apiInitSetup({loginAfter: true}).then(({team}) => {
cy.visit(`/${team.name}/channels/town-square`);
// # Post messages from the past
[date1, date2, date3, date4].forEach((createAt, index) => {
cy.postMessageAs({sender: sysadmin, message: `Hello from ${index}`, channelId: channel.id, createAt});
cy.getCurrentChannelId().then((channelId) => {
cy.postMessageAs({sender: sysadmin, message: `Hello from ${index}`, channelId, createAt});
});
});
// # Post messages from now
......
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