Fix(e2e): E2E report should be available in the community channel. (#3305)
This commit is contained in:
@@ -44,7 +44,7 @@ async function saveArtifacts() {
|
||||
}
|
||||
|
||||
const s3Folder = `${BUILD_ID}-${BRANCH}-${BUILD_TAG}`.replace(/\./g, '-');
|
||||
const uploadPath = path.resolve(__dirname, `../../${MOCHAWESOME_REPORT_DIR}`);
|
||||
const uploadPath = path.resolve(__dirname, `../${MOCHAWESOME_REPORT_DIR}`);
|
||||
const filesToUpload = await getFiles(uploadPath);
|
||||
|
||||
return new Promise((resolve, reject) => {
|
||||
|
@@ -2,7 +2,7 @@
|
||||
// Copyright (c) 2016-present Mattermost, Inc. All Rights Reserved.
|
||||
// See LICENSE.txt for license information.
|
||||
|
||||
import type {WebContentsView, BrowserWindow, ContextMenuParams, Event} from 'electron';
|
||||
import type {BrowserWindow, BrowserView, WebviewTag, WebContents, ContextMenuParams, Event} from 'electron';
|
||||
import type {Options} from 'electron-context-menu';
|
||||
import electronContextMenu from 'electron-context-menu';
|
||||
|
||||
@@ -29,11 +29,11 @@ const defaultMenuOptions = {
|
||||
};
|
||||
|
||||
export default class ContextMenu {
|
||||
view: BrowserWindow | WebContentsView;
|
||||
view: BrowserWindow | BrowserView | WebviewTag | WebContents;
|
||||
menuOptions: Options;
|
||||
menuDispose?: () => void;
|
||||
|
||||
constructor(options: Options, view: BrowserWindow | WebContentsView) {
|
||||
constructor(options: Options, view: BrowserWindow | WebContents) {
|
||||
const providedOptions: Options = options || {};
|
||||
|
||||
this.menuOptions = Object.assign({}, defaultMenuOptions, providedOptions);
|
||||
|
@@ -91,7 +91,7 @@ export class MattermostWebContentsView extends EventEmitter {
|
||||
WebContentsEventManager.addWebContentsEventListeners(this.webContentsView.webContents);
|
||||
|
||||
if (!DeveloperMode.get('disableContextMenu')) {
|
||||
this.contextMenu = new ContextMenu({}, this.webContentsView);
|
||||
this.contextMenu = new ContextMenu({}, this.webContentsView.webContents);
|
||||
}
|
||||
this.maxRetries = MAX_SERVER_RETRIES;
|
||||
|
||||
|
@@ -52,7 +52,7 @@ export class ModalView<T, T2> {
|
||||
this.log.error(e);
|
||||
}
|
||||
|
||||
this.contextMenu = new ContextMenu({}, this.view);
|
||||
this.contextMenu = new ContextMenu({}, this.view.webContents);
|
||||
}
|
||||
|
||||
show = (win?: BrowserWindow, withDevTools?: boolean) => {
|
||||
|
Reference in New Issue
Block a user