Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: add setTitlebarOverlay spec #34221

Merged
merged 1 commit into from May 16, 2022
Merged

Conversation

codebytere
Copy link
Member

Description of Change

Follow-up to #34140

Also edits a previously-added test to address some JS issues.

Checklist

Release Notes

Notes: none

@electron-cation electron-cation bot added the new-pr 🌱 PR opened in the last 24 hours label May 13, 2022
@@ -2245,9 +2245,15 @@ describe('BrowserWindow module', () => {
const overlayEnabled = await w.webContents.executeJavaScript('navigator.windowControlsOverlay.visible');
expect(overlayEnabled).to.be.true('overlayEnabled');
const overlayRectPreMax = await w.webContents.executeJavaScript('getJSOverlayProperties()');
await w.maximize();
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maximize does not return a promise - we should have been awaiting the event.

@codebytere codebytere changed the title spec: add setTitlebarOverlay spec spec: add setTitlebarOverlay spec May 13, 2022
@codebytere codebytere changed the title spec: add setTitlebarOverlay spec test: add setTitlebarOverlay spec May 13, 2022
@codebytere codebytere requested a review from jkleinsc May 13, 2022 13:39
@electron-cation electron-cation bot removed the new-pr 🌱 PR opened in the last 24 hours label May 13, 2022
@jkleinsc jkleinsc merged commit 7af0b58 into main May 16, 2022
@jkleinsc jkleinsc deleted the add-setTitleBarOverlay-spec branch May 16, 2022 16:14
@release-clerk
Copy link

release-clerk bot commented May 16, 2022

No Release Notes

@trop
Copy link
Contributor

trop bot commented May 16, 2022

I have automatically backported this PR to "19-x-y", please check out #34252

khalwa pushed a commit to solarwindscloud/electron that referenced this pull request Feb 22, 2023
spec: add setTitlebarOverlay spec
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants