Add a basic tauri e2e test on Linux (#923)
* WIP e2e test * Working test on Linux * Clean up * Add to CI * Fix * Install tauri-driver * Migrate to ubuntu-latest * Add button check and click * Update name * Separate job for e2e test * Fix path * Fix perms * Fix perms * Single build-test-apps job * Lint wdio file
This commit is contained in:
		
							
								
								
									
										11
									
								
								e2e/tauri/specs/signin.e2e.js
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										11
									
								
								e2e/tauri/specs/signin.e2e.js
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,11 @@
 | 
			
		||||
describe('Modeling App', () => {
 | 
			
		||||
  it('open the sign in page', async () => {
 | 
			
		||||
    const button = await $('#signin')
 | 
			
		||||
    expect(button).toHaveText('Sign in')
 | 
			
		||||
    
 | 
			
		||||
    // Workaround for .click(), see https://github.com/tauri-apps/tauri/issues/6541
 | 
			
		||||
    await button.waitForClickable()
 | 
			
		||||
    await browser.execute('arguments[0].click();', button)
 | 
			
		||||
    // TODO: handle auth
 | 
			
		||||
  })
 | 
			
		||||
})
 | 
			
		||||
		Reference in New Issue
	
	Block a user