mirror of
https://github.com/Foundry376/Mailspring.git
synced 2024-11-14 21:57:55 +08:00
4014b4e187
Summary: - You can now pass `--config-dir-path=/some/custom/path` to `./N1.sh` - `main.coffee` cleaned up a bit. A lot of unused params from legacy Atom stuff were still being used - Integration specs now set the config dir before booting. - New spec to check for the autoupdater in the app and make sure it's pointing at the right place. Test Plan: script/grunt run-integration-tests Reviewers: juan, bengotow Reviewed By: bengotow Differential Revision: https://phab.nylas.com/D2331
25 lines
682 B
JavaScript
25 lines
682 B
JavaScript
export function assertBasicWindow() {
|
|
it("has main window visible", (done)=> {
|
|
this.app.client.isWindowVisible()
|
|
.then((result)=>{ expect(result).toBe(true) })
|
|
.finally(done)
|
|
});
|
|
|
|
it("has main window focused", (done)=> {
|
|
this.app.client.isWindowFocused()
|
|
.then((result)=>{ expect(result).toBe(true) })
|
|
.finally(done)
|
|
});
|
|
|
|
it("isn't minimized", (done)=> {
|
|
this.app.client.isWindowMinimized()
|
|
.then((result)=>{ expect(result).toBe(false) })
|
|
.finally(done)
|
|
});
|
|
|
|
it("doesn't have the dev tools open", (done)=> {
|
|
this.app.client.isWindowDevToolsOpened()
|
|
.then((result)=>{ expect(result).toBe(false) })
|
|
.finally(done)
|
|
});
|
|
}
|