mirror of
				https://github.com/zulip/zulip-desktop.git
				synced 2025-11-03 21:43:18 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			13 lines
		
	
	
		
			460 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			13 lines
		
	
	
		
			460 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
const test = require('tape')
 | 
						|
const setup = require('./setup')
 | 
						|
 | 
						|
test('app runs', function (t) {
 | 
						|
  t.timeoutAfter(10e3)
 | 
						|
  setup.resetTestDataDir()
 | 
						|
  const app = setup.createApp()
 | 
						|
  setup.waitForLoad(app, t)
 | 
						|
    .then(() => app.client.windowByIndex(1)) // focus on webview
 | 
						|
    .then(() => app.client.waitForExist('//*[@id="connect"]')) // id of the connect button
 | 
						|
    .then(() => setup.endTest(app, t),
 | 
						|
          (err) => setup.endTest(app, t, err || 'error'))
 | 
						|
}) |