fix: enable some tests that were accidentally disabled (#46816)

* test: add platform test on visibleOnAllWorkspaces tests

visibleOnAllWorkspaces is not supported on Windows

* test: do not skip visibleOnAllWorkspaces tests on Windows

That feature is supported on Linux, so move the test from the
"window states (excluding Linux)" section into the
"window states" section.

* fix: nested it() calls in visibleOnAllWorkspaces specs

* chore: make the process.platform test simpler

* fix: tests that were not run in api-app-spec due to nested it()

* fix: tests that were not run in api-browser-window-spec due to nested it()

* chore: annotate disabled test

* fix: enable `autoHideMenuBar` tests on Linux and Windows (#46818)

* fix: enable autoHideMenuBar tests

* docs: mark autoHideMenuBar as supported on Linux, Windows
This commit is contained in:
Charles Kerr 2025-04-28 12:32:57 -05:00 committed by GitHub
commit 3f3c297c7a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 31 additions and 30 deletions

View file

@ -84,7 +84,7 @@ describe('app module', () => {
});
describe('app name APIs', () => {
it('with properties', () => {
describe('with properties', () => {
it('returns the name field of package.json', () => {
expect(app.name).to.equal('Electron Test Main');
});
@ -98,7 +98,7 @@ describe('app module', () => {
});
});
it('with functions', () => {
describe('with functions', () => {
it('returns the name field of package.json', () => {
expect(app.getName()).to.equal('Electron Test Main');
});
@ -988,7 +988,7 @@ describe('app module', () => {
});
});
it('with functions', () => {
describe('with functions', () => {
it('can set accessibility support enabled', () => {
expect(app.isAccessibilitySupportEnabled()).to.eql(false);