mirror of
https://github.com/electron/electron.git
synced 2026-01-09 15:38:08 -05:00
test: rerun failed tests individually (#48205)
* test: rerun failed tests individually
* ci: use screencapture-nag-remover
Needed to bypass the popup message "bash" is requesting to bypass the system private window picker and directly access your screen and audio.
* Revert "chore: test with 1st quadrant of the window"
No longer needed because of the addition of the
screencapture-nag-remover script.
This reverts commit f4a7e04c0b.
* test: fixup navigationHistory flake
* rerun test up to 3 times
This commit is contained in:
committed by
GitHub
parent
235fdc41f6
commit
b51e82c5fb
@@ -78,13 +78,9 @@ function areColorsSimilar (
|
||||
}
|
||||
|
||||
function displayCenter (display: Electron.Display): Electron.Point {
|
||||
// On macOS, we get system prompt to ask permission for screen capture
|
||||
// taking up space in the center. As a workaround, choose
|
||||
// area of the application window which is not covered by the prompt.
|
||||
// TODO: Remove this when the prompt situation is resolved.
|
||||
return {
|
||||
x: display.size.width / (process.platform === 'darwin' ? 4 : 2),
|
||||
y: display.size.height / (process.platform === 'darwin' ? 4 : 2)
|
||||
x: display.size.width / 2,
|
||||
y: display.size.height / 2
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { BrowserWindow, session, ipcMain, app, WebContents, screen } from 'electron/main';
|
||||
import { BrowserWindow, session, ipcMain, app, WebContents } from 'electron/main';
|
||||
|
||||
import * as auth from 'basic-auth';
|
||||
import { expect } from 'chai';
|
||||
@@ -782,7 +782,6 @@ describe('<webview> tag', function () {
|
||||
|
||||
let w: BrowserWindow;
|
||||
before(async () => {
|
||||
const display = screen.getPrimaryDisplay();
|
||||
w = new BrowserWindow({
|
||||
webPreferences: {
|
||||
webviewTag: true,
|
||||
@@ -790,7 +789,6 @@ describe('<webview> tag', function () {
|
||||
contextIsolation: false
|
||||
}
|
||||
});
|
||||
w.setBounds(display.bounds);
|
||||
await w.loadURL(`file://${fixtures}/pages/flex-webview.html`);
|
||||
w.setBackgroundColor(WINDOW_BACKGROUND_COLOR);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user