From 9a581129f3c86e0e6f2b03a5e2508471913b966b Mon Sep 17 00:00:00 2001 From: Oyemade Oyemaja <45146137+Oyemade@users.noreply.github.com> Date: Wed, 2 Aug 2023 10:17:56 +0100 Subject: [PATCH] test: fullstory integration test init (#212) * test: fullstory integration test init * fix: full-story test path typo * fix: fullStory integration setup --- .../full-story/full-story.spec.ts | 13 ++ tests/integrations/full-story/index.html | 166 ++++++++++++++++++ tests/integrations/full-story/standard.html | 144 +++++++++++++++ 3 files changed, 323 insertions(+) create mode 100644 tests/integrations/full-story/full-story.spec.ts create mode 100644 tests/integrations/full-story/index.html create mode 100644 tests/integrations/full-story/standard.html diff --git a/tests/integrations/full-story/full-story.spec.ts b/tests/integrations/full-story/full-story.spec.ts new file mode 100644 index 00000000..400455ec --- /dev/null +++ b/tests/integrations/full-story/full-story.spec.ts @@ -0,0 +1,13 @@ +import { test, expect } from '@playwright/test'; + +test('full-story', async ({ page }) => { + await page.goto('/tests/integrations/full-story/'); + + await page.waitForSelector('.completed'); + + const buttonSendEvent = page.locator('#buttonSendEvent'); + await buttonSendEvent.click(); + + const testFullStory = page.locator('#testIdentify'); + await expect(testFullStory).toHaveText('called'); +}); diff --git a/tests/integrations/full-story/index.html b/tests/integrations/full-story/index.html new file mode 100644 index 00000000..ebff70eb --- /dev/null +++ b/tests/integrations/full-story/index.html @@ -0,0 +1,166 @@ + + + + + + + + Partytown FullStory + + + + + + + + + + + + +

Partytown FullStory

+ +

+ Identify + +

+ + + + + + +

Standard FullStory

+

All Tests

+ + diff --git a/tests/integrations/full-story/standard.html b/tests/integrations/full-story/standard.html new file mode 100644 index 00000000..b0d920a1 --- /dev/null +++ b/tests/integrations/full-story/standard.html @@ -0,0 +1,144 @@ + + + + + + + + Standard FullStory + + + + + + + + + +

Standard FullStory

+ + + + +
+

Partytown FullStory

+

All Tests

+ +