Skip SAML tests if disabled (#2169)
* Temporarily disables forgot password test * Skip SAML tests if disabled
This commit is contained in:
		
							parent
							
								
									18c21d9b97
								
							
						
					
					
						commit
						06cec35522
					
				
					 1 changed files with 3 additions and 0 deletions
				
			
		| 
						 | 
					@ -1,9 +1,12 @@
 | 
				
			||||||
import { test } from "@playwright/test";
 | 
					import { test } from "@playwright/test";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					import { IS_SAML_LOGIN_ENABLED } from "../server/lib/constants";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
// Using logged in state from globalSteup
 | 
					// Using logged in state from globalSteup
 | 
				
			||||||
test.use({ storageState: "playwright/artifacts/proStorageState.json" });
 | 
					test.use({ storageState: "playwright/artifacts/proStorageState.json" });
 | 
				
			||||||
 | 
					
 | 
				
			||||||
test("test SAML configuration UI with pro@example.com", async ({ page }) => {
 | 
					test("test SAML configuration UI with pro@example.com", async ({ page }) => {
 | 
				
			||||||
 | 
					  test.skip(!IS_SAML_LOGIN_ENABLED, "It should only run if SAML is enabled");
 | 
				
			||||||
  // Try to go Security page
 | 
					  // Try to go Security page
 | 
				
			||||||
  await page.goto("/settings/security");
 | 
					  await page.goto("/settings/security");
 | 
				
			||||||
  // It should redirect you to the event-types page
 | 
					  // It should redirect you to the event-types page
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in a new issue