mirror of
https://github.com/finos/SymphonyElectron.git
synced 2025-02-25 18:55:29 -06:00
Electron-417 (Reposition active notifications whenever the config is updated) (#339)
- Reposition active notifications when the config is updated - Fix spectron test cases
This commit is contained in:
committed by
Vishwas Shashidhar
parent
1ea6c2af3c
commit
a24255bf69
@@ -144,7 +144,7 @@ describe('Tests for Notification position', () => {
|
||||
it('should change notification position to upper-right', (done) => {
|
||||
return app.client
|
||||
.click('#open-config-win')
|
||||
.windowByIndex(2)
|
||||
.windowByIndex(3)
|
||||
.click('#upper-right')
|
||||
.click('#ok-button')
|
||||
.windowByIndex(0)
|
||||
@@ -194,7 +194,7 @@ describe('Tests for Notification position', () => {
|
||||
.windowByIndex(0)
|
||||
.click('#notf')
|
||||
.getWindowCount().then((count) => {
|
||||
expect(count === 3).toBeTruthy();
|
||||
expect(count === 4).toBeTruthy();
|
||||
done();
|
||||
}).catch((err) => {
|
||||
done.fail(new Error(`notificationPosition failed in getWindowCount with error: ${err}`));
|
||||
|
||||
Reference in New Issue
Block a user