E2E test fixups (#2045)
* Reinstall reporter and re-enable skipped tests * Fixups for Linux * Mac fixes * Windows fixes * Use keyboard shortcuts instead of menu for most menu actions * Couple fixes * One more fix for now * Windows fixes * Lint fixes * Change up developer tools tests to be more consistent * Fix key for mac * Couple fixes for flaky tests/to avoid crashes on unload
This commit is contained in:
@@ -33,15 +33,14 @@ describe('application', function desc() {
|
||||
it('MM-T1304/MM-T1306 should open the app on the requested deep link', async () => {
|
||||
this.app = await env.getApp(['mattermost://github.com/test/url']);
|
||||
this.serverMap = await env.getServerMap(this.app);
|
||||
const mainWindow = await this.app.firstWindow();
|
||||
const mainWindow = this.app.windows().find((window) => window.url().includes('index'));
|
||||
const browserWindow = await this.app.browserWindow(mainWindow);
|
||||
const webContentsId = this.serverMap[`${config.teams[1].name}___TAB_MESSAGING`].webContentsId;
|
||||
const isActive = await browserWindow.evaluate((window, id) => {
|
||||
return window.getBrowserViews().find((view) => view.webContents.id === id).webContents.getURL();
|
||||
}, webContentsId);
|
||||
isActive.should.equal('https://github.com/test/url');
|
||||
const mainView = this.app.windows().find((window) => window.url().includes('index'));
|
||||
const dropdownButtonText = await mainView.innerText('.TeamDropdownButton');
|
||||
const dropdownButtonText = await mainWindow.innerText('.TeamDropdownButton');
|
||||
dropdownButtonText.should.equal('github');
|
||||
await this.app.close();
|
||||
});
|
||||
|
Reference in New Issue
Block a user