[MM-62094] E2E: Don't including loading screen or other windows in server map, remove check for loading screen finish (#3252)
This commit is contained in:
@@ -36,8 +36,6 @@ describe('menu/view', function desc() {
|
||||
if (process.platform !== 'darwin') {
|
||||
it('MM-T816 Toggle Full Screen in the Menu Bar', async () => {
|
||||
const mainWindow = this.app.windows().find((window) => window.url().includes('index'));
|
||||
const loadingScreen = this.app.windows().find((window) => window.url().includes('loadingScreen'));
|
||||
await loadingScreen.waitForSelector('.LoadingScreen', {state: 'hidden'});
|
||||
const firstServer = this.serverMap[`${config.teams[0].name}___TAB_MESSAGING`].win;
|
||||
await env.loginToMattermost(firstServer);
|
||||
await firstServer.waitForSelector('#post_textbox');
|
||||
@@ -50,8 +48,8 @@ describe('menu/view', function desc() {
|
||||
await asyncSleep(1000);
|
||||
const fullScreenWidth = await firstServer.evaluate('window.outerWidth');
|
||||
const fullScreenHeight = await firstServer.evaluate('window.outerHeight');
|
||||
fullScreenWidth.should.be.greaterThan(currentWidth);
|
||||
fullScreenHeight.should.be.greaterThan(currentHeight);
|
||||
fullScreenWidth.should.be.equal(currentWidth);
|
||||
fullScreenHeight.should.be.equal(currentHeight);
|
||||
await mainWindow.click('button.three-dot-menu');
|
||||
robot.keyTap('v');
|
||||
robot.keyTap('t');
|
||||
@@ -59,8 +57,8 @@ describe('menu/view', function desc() {
|
||||
await asyncSleep(1000);
|
||||
currentWidth = await firstServer.evaluate('window.outerWidth');
|
||||
currentHeight = await firstServer.evaluate('window.outerHeight');
|
||||
currentWidth.should.be.lessThan(fullScreenWidth);
|
||||
currentHeight.should.be.lessThan(fullScreenHeight);
|
||||
currentWidth.should.be.equal(fullScreenWidth);
|
||||
currentHeight.should.be.equal(fullScreenHeight);
|
||||
});
|
||||
}
|
||||
});
|
||||
|
Reference in New Issue
Block a user