mirror of
https://github.com/finos/SymphonyElectron.git
synced 2026-07-29 23:57:56 -05:00
Electron-90 updated some test cases
This commit is contained in:
committed by
Kiran Niranjan
parent
83ab55e95d
commit
067d341730
@@ -59,7 +59,9 @@ describe('Tests for Notification position', () => {
|
||||
});
|
||||
|
||||
it('should change the window', () => {
|
||||
return app.client.windowByIndex(0);
|
||||
return app.client.windowByIndex(0).then(() => {
|
||||
return app.browserWindow.getTitle().should.eventually.equal('Symphony | Secure Seamless Communication')
|
||||
});
|
||||
});
|
||||
|
||||
it('should change notification position to lower-right', () => {
|
||||
@@ -70,7 +72,9 @@ describe('Tests for Notification position', () => {
|
||||
.click('#ok-button')
|
||||
.windowByIndex(0)
|
||||
.click('#notf')
|
||||
.windowByIndex(1)
|
||||
.windowByIndex(1).then(() => {
|
||||
return app.browserWindow.getTitle().should.eventually.equal('Electron')
|
||||
});
|
||||
});
|
||||
|
||||
it('should check notification position and equal to lower-right', () => {
|
||||
@@ -82,7 +86,10 @@ describe('Tests for Notification position', () => {
|
||||
});
|
||||
|
||||
it('should change the window', () => {
|
||||
return app.client.windowByIndex(0);
|
||||
return app.client
|
||||
.windowByIndex(0).then(() => {
|
||||
return app.browserWindow.getTitle().should.eventually.equal('Symphony | Secure Seamless Communication')
|
||||
});
|
||||
});
|
||||
|
||||
it('should change notification position to upper-right', () => {
|
||||
@@ -93,7 +100,9 @@ describe('Tests for Notification position', () => {
|
||||
.click('#ok-button')
|
||||
.windowByIndex(0)
|
||||
.click('#notf')
|
||||
.windowByIndex(1)
|
||||
.windowByIndex(1).then(() => {
|
||||
return app.browserWindow.getTitle().should.eventually.equal('Electron')
|
||||
});
|
||||
});
|
||||
|
||||
it('should check notification position and equal to upper-right', () => {
|
||||
@@ -104,9 +113,11 @@ describe('Tests for Notification position', () => {
|
||||
});
|
||||
});
|
||||
|
||||
it('should close the notification', () => {
|
||||
it('should change the window to main', () => {
|
||||
return app.client
|
||||
.windowByIndex(0)
|
||||
.windowByIndex(0).then(() => {
|
||||
return app.browserWindow.getTitle().should.eventually.equal('Symphony | Secure Seamless Communication')
|
||||
});
|
||||
});
|
||||
|
||||
it('should open notification and close', () => {
|
||||
@@ -114,10 +125,9 @@ describe('Tests for Notification position', () => {
|
||||
.windowByIndex(0)
|
||||
.click('#notf')
|
||||
.getWindowCount().should.eventually.equal(3)
|
||||
.windowByIndex(1)
|
||||
.click('#close')
|
||||
.getWindowCount().should.eventually.equal(3)
|
||||
.windowByIndex(0)
|
||||
.windowByIndex(1).then(() => {
|
||||
return app.browserWindow.getTitle().should.eventually.equal('Electron')
|
||||
});
|
||||
});
|
||||
|
||||
});
|
||||
Reference in New Issue
Block a user