mirror of
				https://github.com/zulip/zulip-desktop.git
				synced 2025-11-04 05:53:21 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			18 lines
		
	
	
		
			479 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			18 lines
		
	
	
		
			479 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
'use strict';
 | 
						|
const test = require('tape');
 | 
						|
const setup = require('./setup');
 | 
						|
 | 
						|
test('app runs', async t => {
 | 
						|
	t.timeoutAfter(10e3);
 | 
						|
	setup.resetTestDataDir();
 | 
						|
	const app = setup.createApp();
 | 
						|
	try {
 | 
						|
		await setup.waitForLoad(app, t);
 | 
						|
		await app.client.windowByIndex(1); // Focus on webview
 | 
						|
		await app.client.waitForExist('//*[@id="connect"]'); // Id of the connect button
 | 
						|
		await setup.endTest(app, t);
 | 
						|
	} catch (error) {
 | 
						|
		await setup.endTest(app, t, error || 'error');
 | 
						|
	}
 | 
						|
});
 |