mirror of
https://github.com/finos/SymphonyElectron.git
synced 2025-02-25 18:55:29 -06:00
Merge pull request #155 from KiranNiranjan/spectron-refactor
Refactored spectron tests
This commit is contained in:
commit
586b569864
@ -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) => {
|
||||
|
Loading…
Reference in New Issue
Block a user