11import { expect } from "@playwright/test" ;
22
33import { getEmbedIframe } from "@calcom/embed-core/playwright/lib/testUtils" ;
4- // eslint-disable-next-line no-restricted-imports
4+
55import { test } from "@calcom/web/playwright/lib/fixtures" ;
66
77test . describe ( "React Embed" , ( ) => {
@@ -13,7 +13,7 @@ test.describe("React Embed", () => {
1313 const calNamespace = "inline" ;
1414 await embeds . gotoPlayground ( { url : "/inline.html" , calNamespace } ) ;
1515 const embedIframe = await getEmbedIframe ( { calNamespace, page, pathname : "/pro" } ) ;
16- expect ( embedIframe ) . toBeEmbedCalLink ( "" , embeds . getActionFiredDetails , {
16+ await expect ( embedIframe ) . toBeEmbedCalLink ( calNamespace , embeds . getActionFiredDetails , {
1717 pathname : "/pro" ,
1818 searchParams : {
1919 theme : "dark" ,
@@ -35,7 +35,7 @@ test.describe("React Embed", () => {
3535 await page . click ( "text=Book my Cal" ) ;
3636
3737 const embedIframe = await getEmbedIframe ( { calNamespace, page, pathname : "/pro" } ) ;
38- expect ( embedIframe ) . toBeEmbedCalLink ( calNamespace , embeds . getActionFiredDetails , {
38+ await expect ( embedIframe ) . toBeEmbedCalLink ( calNamespace , embeds . getActionFiredDetails , {
3939 pathname : "/pro" ,
4040 searchParams : {
4141 theme : "dark" ,
@@ -45,7 +45,6 @@ test.describe("React Embed", () => {
4545 } ) ;
4646
4747 // TODO: This test is extremely flaky and has been failing a lot, blocking many PRs. Fix this.
48- // eslint-disable-next-line playwright/no-skipped-test
4948 test . describe . skip ( "Element Click Popup" , ( ) => {
5049 test ( "should verify that the iframe got created with correct URL - namespaced" , async ( {
5150 page,
@@ -57,7 +56,7 @@ test.describe("React Embed", () => {
5756 await page . click ( "text=Click me" ) ;
5857
5958 const embedIframe = await getEmbedIframe ( { calNamespace, page, pathname : "/pro" } ) ;
60- expect ( embedIframe ) . toBeEmbedCalLink ( calNamespace , embeds . getActionFiredDetails , {
59+ await expect ( embedIframe ) . toBeEmbedCalLink ( calNamespace , embeds . getActionFiredDetails , {
6160 pathname : "/pro" ,
6261 searchParams : {
6362 theme : "dark" ,
0 commit comments