You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
					
					
						
							18 lines
						
					
					
						
							663 B
						
					
					
				
			
		
		
		
			
			
			
		
		
	
	
							18 lines
						
					
					
						
							663 B
						
					
					
				| import { test, expect, type TestInfo } from '@playwright/test'; | |
| 
 | |
| const { exec } = require('node:child_process'); | |
| const utils = require('../../global-utils'); | |
| 
 | |
| utils.loadEnv(); | |
| 
 | |
| test.beforeAll('Setup', async () => { | |
|     console.log("Starting Keycloak"); | |
|     exec(`docker compose --profile keycloak --env-file test.env up`); | |
| }); | |
| 
 | |
| test('Keycloak is up', async ({ page }) => { | |
|     await utils.waitFor(process.env.SSO_AUTHORITY, page.context().browser()); | |
|     // Dummy authority is created at the end of the setup | |
|     await utils.waitFor(process.env.DUMMY_AUTHORITY, page.context().browser()); | |
|     console.log(`Keycloak running on: ${process.env.SSO_AUTHORITY}`); | |
| });
 | |
| 
 |