mirror of
				https://github.com/zulip/zulip-desktop.git
				synced 2025-11-04 05:53:21 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			18 lines
		
	
	
		
			565 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			18 lines
		
	
	
		
			565 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
const test = require('tape')
 | 
						|
const setup = require('./setup')
 | 
						|
 | 
						|
// Create new org link should open in the default browser [WIP]
 | 
						|
 | 
						|
test('new-org-link', function (t) {
 | 
						|
  t.timeoutAfter(50e3)
 | 
						|
  setup.resetTestDataDir()
 | 
						|
  const app = setup.createApp()
 | 
						|
  setup.waitForLoad(app, t)
 | 
						|
    .then(() => app.client.windowByIndex(1)) // focus on webview
 | 
						|
    .then(() => app.client.click('#open-create-org-link')) // Click on new org link button
 | 
						|
    .then(() => setup.wait(5000))
 | 
						|
    .then(() => setup.endTest(app, t),
 | 
						|
          (err) => setup.endTest(app, t, err || 'error'))
 | 
						|
})
 | 
						|
 |