mirror of
https://github.com/finos/SymphonyElectron.git
synced 2025-02-25 18:55:29 -06:00
Refactored spectron tests
This commit is contained in:
committed by
Kiran Niranjan
parent
763d27aa8d
commit
080d6534e7
@@ -56,7 +56,7 @@ describe('Tests for Always on top', () => {
|
||||
});
|
||||
});
|
||||
|
||||
it('should check is always on top', async () => {
|
||||
it('should check is always on top', () => {
|
||||
return app.browserWindow.isAlwaysOnTop().then((isAlwaysOnTop) => {
|
||||
expect(isAlwaysOnTop).toBeFalsy();
|
||||
}).catch((err) => {
|
||||
|
||||
@@ -61,7 +61,7 @@ describe('Tests for Bring to front', () => {
|
||||
});
|
||||
|
||||
it('should maximize browser window', () => {
|
||||
return app.browserWindow.restore().then(async () => {
|
||||
return app.browserWindow.restore().then(() => {
|
||||
return app.browserWindow.isMinimized().then((isMinimized) => {
|
||||
expect(isMinimized).toBeFalsy();
|
||||
}).catch((err) => {
|
||||
|
||||
Reference in New Issue
Block a user