| 
									
										
										
										
											2022-04-04 15:44:04 +00:00
										 |  |  | import { expect, Frame } from "@playwright/test"; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | import { test } from "../fixtures/fixtures"; | 
					
						
							| 
									
										
										
										
											2022-04-08 05:33:24 +00:00
										 |  |  | import { todo, getEmbedIframe } from "../lib/testUtils"; | 
					
						
							| 
									
										
										
										
											2022-04-04 15:44:04 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2022-04-08 16:59:08 +00:00
										 |  |  | test("Inline Iframe - Configured with Dark Theme", async ({ | 
					
						
							|  |  |  |   page, | 
					
						
							|  |  |  |   getActionFiredDetails, | 
					
						
							|  |  |  |   addEmbedListeners, | 
					
						
							|  |  |  | }) => { | 
					
						
							|  |  |  |   await addEmbedListeners(""); | 
					
						
							| 
									
										
										
										
											2022-04-04 15:44:04 +00:00
										 |  |  |   await page.goto("/?only=ns:default"); | 
					
						
							| 
									
										
										
										
											2022-04-08 05:33:24 +00:00
										 |  |  |   const embedIframe = await getEmbedIframe({ page, pathname: "/pro" }); | 
					
						
							| 
									
										
										
										
											2022-04-08 16:59:08 +00:00
										 |  |  |   expect(embedIframe).toBeEmbedCalLink("", getActionFiredDetails, { | 
					
						
							| 
									
										
										
										
											2022-04-04 15:44:04 +00:00
										 |  |  |     pathname: "/pro", | 
					
						
							|  |  |  |     searchParams: { | 
					
						
							|  |  |  |       theme: "dark", | 
					
						
							|  |  |  |     }, | 
					
						
							|  |  |  |   }); | 
					
						
							|  |  |  | }); | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | todo( | 
					
						
							|  |  |  |   "Ensure that on all pages - [user], [user]/[type], team/[slug], team/[slug]/book, UI styling works if these pages are directly linked in embed" | 
					
						
							|  |  |  | ); | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | todo("Check that UI Configuration doesn't work for Free Plan"); |