mirror of
				https://github.com/zulip/zulip-desktop.git
				synced 2025-11-04 05:53:21 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			24 lines
		
	
	
		
			589 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			24 lines
		
	
	
		
			589 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
"use strict";
 | 
						|
const {chan, put, take} = require("medium");
 | 
						|
const test = require("tape");
 | 
						|
 | 
						|
const setup = require("./setup.js");
 | 
						|
 | 
						|
test("app runs", async (t) => {
 | 
						|
  t.timeoutAfter(10e3);
 | 
						|
  setup.resetTestDataDir();
 | 
						|
  const app = await setup.createApp();
 | 
						|
  try {
 | 
						|
    const windows = chan();
 | 
						|
    for (const win of app.windows()) put(windows, win);
 | 
						|
    app.on("window", (win) => put(windows, win));
 | 
						|
 | 
						|
    const mainWindow = await take(windows);
 | 
						|
    t.equal(await mainWindow.title(), "Zulip");
 | 
						|
 | 
						|
    await mainWindow.waitForSelector("#connect");
 | 
						|
  } finally {
 | 
						|
    await setup.endTest(app);
 | 
						|
  }
 | 
						|
});
 |