[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:
@@ -23,10 +23,8 @@ describe('edit_menu', function desc() {
|
||||
await asyncSleep(1000);
|
||||
this.app = await env.getApp();
|
||||
this.serverMap = await env.getServerMap(this.app);
|
||||
|
||||
const loadingScreen = this.app.windows().find((window) => window.url().includes('loadingScreen'));
|
||||
await loadingScreen.waitForSelector('.LoadingScreen', {state: 'hidden'});
|
||||
firstServer = this.serverMap[`${config.teams[0].name}___TAB_MESSAGING`].win;
|
||||
|
||||
await env.loginToMattermost(firstServer);
|
||||
});
|
||||
|
||||
@@ -44,7 +42,7 @@ describe('edit_menu', function desc() {
|
||||
await firstServer.type('#post_textbox', 'Mattermost');
|
||||
await firstServer.click('#post_textbox');
|
||||
robot.keyTap('z', [env.cmdOrCtrl]);
|
||||
await asyncSleep(500);
|
||||
await asyncSleep(1000);
|
||||
const content = await firstServer.inputValue('#post_textbox');
|
||||
content.should.be.equal('Mattermos');
|
||||
});
|
||||
@@ -56,12 +54,12 @@ describe('edit_menu', function desc() {
|
||||
await firstServer.type('#post_textbox', 'Mattermost');
|
||||
await firstServer.click('#post_textbox');
|
||||
robot.keyTap('z', [env.cmdOrCtrl]);
|
||||
await asyncSleep(500);
|
||||
await asyncSleep(1000);
|
||||
const textAfterUndo = await firstServer.inputValue('#post_textbox');
|
||||
textAfterUndo.should.be.equal('Mattermos');
|
||||
await firstServer.click('#post_textbox');
|
||||
robot.keyTap('z', ['shift', env.cmdOrCtrl]);
|
||||
await asyncSleep(500);
|
||||
await asyncSleep(1000);
|
||||
const content = await firstServer.inputValue('#post_textbox');
|
||||
content.should.be.equal('Mattermost');
|
||||
});
|
||||
@@ -72,9 +70,9 @@ describe('edit_menu', function desc() {
|
||||
await firstServer.fill('#post_textbox', '');
|
||||
await firstServer.type('#post_textbox', 'Mattermost');
|
||||
robot.keyTap('a', [env.cmdOrCtrl]);
|
||||
await asyncSleep(500);
|
||||
await asyncSleep(1000);
|
||||
robot.keyTap('x', [env.cmdOrCtrl]);
|
||||
await asyncSleep(500);
|
||||
await asyncSleep(1000);
|
||||
const content = await firstServer.inputValue('#post_textbox');
|
||||
content.should.be.equal('');
|
||||
});
|
||||
@@ -85,12 +83,12 @@ describe('edit_menu', function desc() {
|
||||
await firstServer.fill('#post_textbox', '');
|
||||
await firstServer.type('#post_textbox', 'Mattermost');
|
||||
robot.keyTap('a', [env.cmdOrCtrl]);
|
||||
await asyncSleep(500);
|
||||
await asyncSleep(1000);
|
||||
robot.keyTap('c', [env.cmdOrCtrl]);
|
||||
await asyncSleep(500);
|
||||
await asyncSleep(1000);
|
||||
await firstServer.click('#post_textbox');
|
||||
robot.keyTap('v', [env.cmdOrCtrl]);
|
||||
await asyncSleep(500);
|
||||
await asyncSleep(1000);
|
||||
const content = await firstServer.inputValue('#post_textbox');
|
||||
content.should.be.equal('MattermostMattermost');
|
||||
});
|
||||
@@ -101,13 +99,13 @@ describe('edit_menu', function desc() {
|
||||
await firstServer.fill('#post_textbox', '');
|
||||
await firstServer.type('#post_textbox', 'Mattermost');
|
||||
robot.keyTap('a', [env.cmdOrCtrl]);
|
||||
await asyncSleep(500);
|
||||
await asyncSleep(1000);
|
||||
robot.keyTap('c', [env.cmdOrCtrl]);
|
||||
await asyncSleep(500);
|
||||
await asyncSleep(1000);
|
||||
robot.keyTap('a', [env.cmdOrCtrl]);
|
||||
await asyncSleep(500);
|
||||
await asyncSleep(1000);
|
||||
robot.keyTap('v', [env.cmdOrCtrl]);
|
||||
await asyncSleep(500);
|
||||
await asyncSleep(1000);
|
||||
const content = await firstServer.inputValue('#post_textbox');
|
||||
content.should.be.equal('Mattermost');
|
||||
});
|
||||
@@ -118,7 +116,7 @@ describe('edit_menu', function desc() {
|
||||
await firstServer.fill('#post_textbox', '');
|
||||
await firstServer.fill('#post_textbox', 'Mattermost');
|
||||
robot.keyTap('a', [env.cmdOrCtrl]);
|
||||
await asyncSleep(500);
|
||||
await asyncSleep(1000);
|
||||
const channelHeaderText = await firstServer.evaluate('window.getSelection().toString()');
|
||||
channelHeaderText.should.equal('Mattermost');
|
||||
});
|
||||
|
Reference in New Issue
Block a user