add e2e tests
This commit is contained in:
parent
849ce60d56
commit
0b7aa2f141
12 changed files with 60 additions and 49 deletions
|
|
@ -215,6 +215,7 @@ export function GridItem({
|
||||||
className={`bg-white rounded-lg overflow-hidden shadow-sm border ${
|
className={`bg-white rounded-lg overflow-hidden shadow-sm border ${
|
||||||
isSelected ? 'border-teal/30' : ''
|
isSelected ? 'border-teal/30' : ''
|
||||||
} transition flex flex-col items-start hover:border-teal`}
|
} transition flex flex-col items-start hover:border-teal`}
|
||||||
|
data-test-id="spot-list-item"
|
||||||
>
|
>
|
||||||
<div
|
<div
|
||||||
className="relative group overflow-hidden"
|
className="relative group overflow-hidden"
|
||||||
|
|
|
||||||
|
|
@ -110,7 +110,7 @@ function ProjectDropdown(props: { location: any }) {
|
||||||
}}
|
}}
|
||||||
placement="bottomLeft"
|
placement="bottomLeft"
|
||||||
>
|
>
|
||||||
<Button>
|
<Button data-test-id="project-dropdown" >
|
||||||
<Space>
|
<Space>
|
||||||
<Text className="font-medium capitalize">
|
<Text className="font-medium capitalize">
|
||||||
{showCurrent && activeSite ? (
|
{showCurrent && activeSite ? (
|
||||||
|
|
|
||||||
|
|
@ -143,6 +143,7 @@ function SelectDateRange(props: Props) {
|
||||||
isUSLocale={isUSLocale}
|
isUSLocale={isUSLocale}
|
||||||
useButtonStyle={useButtonStyle}
|
useButtonStyle={useButtonStyle}
|
||||||
isTileDisabled={isTileDisabled}
|
isTileDisabled={isTileDisabled}
|
||||||
|
data-test-id="widget-select-date-range"
|
||||||
/>
|
/>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
@ -164,6 +165,7 @@ function SelectDateRange(props: Props) {
|
||||||
period={period}
|
period={period}
|
||||||
right
|
right
|
||||||
style={{ width: '100%' }}
|
style={{ width: '100%' }}
|
||||||
|
data-test-id="widget-select-date-range"
|
||||||
/>
|
/>
|
||||||
{isCustom && (
|
{isCustom && (
|
||||||
<OutsideClickDetectingDiv
|
<OutsideClickDetectingDiv
|
||||||
|
|
@ -272,6 +274,7 @@ function AndDateRange({
|
||||||
size="small"
|
size="small"
|
||||||
className="flex items-center btn-card-period-range"
|
className="flex items-center btn-card-period-range"
|
||||||
icon={useButtonStyle ? <Calendar size={16} /> : null}
|
icon={useButtonStyle ? <Calendar size={16} /> : null}
|
||||||
|
data-test-id="widget-select-date-range"
|
||||||
>
|
>
|
||||||
{isCustomRange ? customRange : selectedValue?.label}
|
{isCustomRange ? customRange : selectedValue?.label}
|
||||||
<DownOutlined />
|
<DownOutlined />
|
||||||
|
|
|
||||||
|
|
@ -27,7 +27,7 @@ function SessionHeader() {
|
||||||
};
|
};
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="flex items-center px-4 py-3 justify-between w-full">
|
<div className="flex items-center px-4 py-3 justify-between w-full" data-test-id="session-list-header">
|
||||||
<div
|
<div
|
||||||
className={`flex w-full flex-wrap gap-2 ${screens.md ? 'justify-between' : 'justify-start'}`}
|
className={`flex w-full flex-wrap gap-2 ${screens.md ? 'justify-between' : 'justify-start'}`}
|
||||||
>
|
>
|
||||||
|
|
|
||||||
|
|
@ -32,4 +32,8 @@ export default {
|
||||||
'/node_modules/(?!syncod)',
|
'/node_modules/(?!syncod)',
|
||||||
],
|
],
|
||||||
setupFiles: ['<rootDir>/tests/unit/jest.setup.ts'],
|
setupFiles: ['<rootDir>/tests/unit/jest.setup.ts'],
|
||||||
|
testPathIgnorePatterns: [
|
||||||
|
'/node_modules/',
|
||||||
|
'/tests/playwright/'
|
||||||
|
],
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -20,9 +20,13 @@
|
||||||
"name": "__$user-gettingStarted$__",
|
"name": "__$user-gettingStarted$__",
|
||||||
"value": "{\"steps\":[{\"title\":\"🛠️ Install OpenReplay\",\"status\":\"completed\"},{\"title\":\"🕵️ Identify Users\",\"status\":\"completed\"},{\"title\":\"🧑💻 Invite Team Members\",\"status\":\"completed\"},{\"title\":\"🔌 Integrations\",\"status\":\"completed\"}],\"status\":\"completed\"}"
|
"value": "{\"steps\":[{\"title\":\"🛠️ Install OpenReplay\",\"status\":\"completed\"},{\"title\":\"🕵️ Identify Users\",\"status\":\"completed\"},{\"title\":\"🧑💻 Invite Team Members\",\"status\":\"completed\"},{\"title\":\"🔌 Integrations\",\"status\":\"completed\"}],\"status\":\"completed\"}"
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"name": "__$global-destinationPath$__",
|
||||||
|
"value": "/"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"name": "___$or_spotToken$___",
|
"name": "___$or_spotToken$___",
|
||||||
"value": "eyJhbGciOiJIUzUxMiIsInR5cCI6IkpXVCJ9.eyJ1c2VySWQiOjU4LCJ0ZW5hbnRJZCI6MSwiZXhwIjoxNzQ4MDEzOTg2LCJpc3MiOiJPcGVuUmVwbGF5LW9zcyIsImlhdCI6MTc0ODAxMzM4NiwiYXVkIjoic3BvdDpPcGVuUmVwbGF5In0.8HHG8bNovaBgLZz1iIZpD-WHR8ke-ue6VukID5vxW0IuvySL21sPu8D-sFFZSn-ON_EIMW14Pu_qYVJoib5lMQ"
|
"value": "eyJhbGciOiJIUzUxMiIsInR5cCI6IkpXVCJ9.eyJ1c2VySWQiOjU4LCJ0ZW5hbnRJZCI6MSwiZXhwIjoxNzQ4ODc2MzkyLCJpc3MiOiJPcGVuUmVwbGF5LW9zcyIsImlhdCI6MTc0ODg3NTc5MiwiYXVkIjoic3BvdDpPcGVuUmVwbGF5In0.5Xuboo2h30P6mTYHEtzoaJTBZvZGwEMs8ywookDsY0Xp0Ah9m9K-s3WF2x-M_7LCfDOp7nBFa8j9AyKz09V0oA"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "__$session-timezone$__",
|
"name": "__$session-timezone$__",
|
||||||
|
|
@ -34,11 +38,11 @@
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "__openreplay_health_status",
|
"name": "__openreplay_health_status",
|
||||||
"value": "1748013396460"
|
"value": "1748875801944"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "__$user-siteId$__",
|
"name": "__$user-siteId$__",
|
||||||
"value": "65"
|
"value": "109"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "__or__langBannerClosed",
|
"name": "__or__langBannerClosed",
|
||||||
|
|
@ -46,19 +50,19 @@
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "AuthStore",
|
"name": "AuthStore",
|
||||||
"value": "{\"authDetails\":\"{\\\"tenants\\\":true,\\\"sso\\\":null,\\\"ssoProvider\\\":null,\\\"enforceSSO\\\":null,\\\"edition\\\":\\\"foss\\\"}\",\"__mps__\":{\"expireInTimestamp\":1748016995020}}"
|
"value": "{\"authDetails\":\"{\\\"tenants\\\":true,\\\"sso\\\":null,\\\"ssoProvider\\\":null,\\\"enforceSSO\\\":null,\\\"edition\\\":\\\"foss\\\"}\",\"__mps__\":{\"expireInTimestamp\":1748879400231}}"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "UserStore",
|
"name": "UserStore",
|
||||||
"value": "{\"siteId\":null,\"tenants\":[],\"jwt\":\"eyJhbGciOiJIUzUxMiIsInR5cCI6IkpXVCJ9.eyJ1c2VySWQiOjU4LCJ0ZW5hbnRJZCI6MSwiZXhwIjoxNzQ4MDk5Nzg2LCJpc3MiOiJPcGVuUmVwbGF5LW9zcyIsImlhdCI6MTc0ODAxMzM4NiwiYXVkIjoiZnJvbnQ6T3BlblJlcGxheSJ9.614ybiDIepo4OHWWMb-yDGBI6rAHb0UMr5Hxbi0lgvhnxmIQwC32KDyE1E39y47nQaqgkrr-GarIlBmCF_A0Ow\",\"spotJwt\":\"eyJhbGciOiJIUzUxMiIsInR5cCI6IkpXVCJ9.eyJ1c2VySWQiOjU4LCJ0ZW5hbnRJZCI6MSwiZXhwIjoxNzQ4MDEzOTg2LCJpc3MiOiJPcGVuUmVwbGF5LW9zcyIsImlhdCI6MTc0ODAxMzM4NiwiYXVkIjoic3BvdDpPcGVuUmVwbGF5In0.8HHG8bNovaBgLZz1iIZpD-WHR8ke-ue6VukID5vxW0IuvySL21sPu8D-sFFZSn-ON_EIMW14Pu_qYVJoib5lMQ\",\"scopeState\":2,\"onboarding\":false,\"account\":\"{\\\"id\\\":58,\\\"email\\\":\\\"andrei@openreplay.com\\\",\\\"smtp\\\":false,\\\"expirationDate\\\":-1,\\\"permissions\\\":[],\\\"settings\\\":{\\\"modules\\\":[\\\"usability-tests\\\",\\\"feature-flags\\\"]},\\\"iceServers\\\":[],\\\"hasPassword\\\":true,\\\"apiKey\\\":\\\"48Vph82zUEWHmfPSUbgG\\\",\\\"edition\\\":\\\"foss\\\",\\\"optOut\\\":false,\\\"versionNumber\\\":\\\"1.17.0\\\",\\\"name\\\":\\\"Andrei\\\",\\\"createdAt\\\":1652690354756,\\\"admin\\\":true,\\\"superAdmin\\\":false}\"}"
|
"value": "{\"siteId\":null,\"tenants\":[],\"jwt\":\"eyJhbGciOiJIUzUxMiIsInR5cCI6IkpXVCJ9.eyJ1c2VySWQiOjU4LCJ0ZW5hbnRJZCI6MSwiZXhwIjoxNzQ4OTYyMTkyLCJpc3MiOiJPcGVuUmVwbGF5LW9zcyIsImlhdCI6MTc0ODg3NTc5MiwiYXVkIjoiZnJvbnQ6T3BlblJlcGxheSJ9.bfMw80k15BIwHkR_JQsY_DFqDJwERZcpYLOBRbcPcm2OT_WPozDal6HS8rs5YeyW0m98HRJa1ShGoMiyQhxMJA\",\"spotJwt\":\"eyJhbGciOiJIUzUxMiIsInR5cCI6IkpXVCJ9.eyJ1c2VySWQiOjU4LCJ0ZW5hbnRJZCI6MSwiZXhwIjoxNzQ4ODc2MzkyLCJpc3MiOiJPcGVuUmVwbGF5LW9zcyIsImlhdCI6MTc0ODg3NTc5MiwiYXVkIjoic3BvdDpPcGVuUmVwbGF5In0.5Xuboo2h30P6mTYHEtzoaJTBZvZGwEMs8ywookDsY0Xp0Ah9m9K-s3WF2x-M_7LCfDOp7nBFa8j9AyKz09V0oA\",\"scopeState\":2,\"onboarding\":false,\"account\":\"{\\\"id\\\":58,\\\"email\\\":\\\"andrei@openreplay.com\\\",\\\"smtp\\\":false,\\\"expirationDate\\\":-1,\\\"permissions\\\":[],\\\"settings\\\":{\\\"modules\\\":[\\\"usability-tests\\\",\\\"feature-flags\\\"]},\\\"iceServers\\\":[],\\\"hasPassword\\\":true,\\\"apiKey\\\":\\\"48Vph82zUEWHmfPSUbgG\\\",\\\"edition\\\":\\\"foss\\\",\\\"optOut\\\":false,\\\"versionNumber\\\":\\\"1.17.0\\\",\\\"name\\\":\\\"Andrei\\\",\\\"createdAt\\\":1652690354756,\\\"admin\\\":true,\\\"superAdmin\\\":false}\"}"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "__openreplay_health_response",
|
"name": "__openreplay_health_response",
|
||||||
"value": "{\"overallHealth\":true,\"healthMap\":{\"databases\":{\"name\":\"Databases\",\"healthOk\":true,\"subservices\":{\"postgres\":{\"health\":true,\"details\":{}}},\"serviceName\":\"databases\"},\"ingestionPipeline\":{\"name\":\"Ingestion Pipeline\",\"healthOk\":true,\"subservices\":{\"redis\":{\"health\":true,\"details\":{}}},\"serviceName\":\"ingestionPipeline\"},\"backendServices\":{\"name\":\"Backend Services\",\"healthOk\":true,\"subservices\":{\"alerts\":{\"health\":true,\"details\":{}},\"assets\":{\"health\":true,\"details\":{}},\"assist\":{\"health\":true,\"details\":{}},\"chalice\":{\"health\":true,\"details\":{}},\"db\":{\"health\":true,\"details\":{}},\"ender\":{\"health\":true,\"details\":{}},\"frontend\":{\"health\":true,\"details\":{}},\"heuristics\":{\"health\":true,\"details\":{}},\"http\":{\"health\":true,\"details\":{}},\"ingress-nginx\":{\"health\":true,\"details\":{}},\"integrations\":{\"health\":true,\"details\":{}},\"sink\":{\"health\":true,\"details\":{}},\"sourcemapreader\":{\"health\":true,\"details\":{}},\"storage\":{\"health\":true,\"details\":{}}},\"serviceName\":\"backendServices\"}},\"details\":{\"numberOfSessionsCaptured\":214690,\"numberOfEventCaptured\":1816886}}"
|
"value": "{\"overallHealth\":true,\"healthMap\":{\"databases\":{\"name\":\"Databases\",\"healthOk\":true,\"subservices\":{\"postgres\":{\"health\":true,\"details\":{}}},\"serviceName\":\"databases\"},\"ingestionPipeline\":{\"name\":\"Ingestion Pipeline\",\"healthOk\":true,\"subservices\":{\"redis\":{\"health\":true,\"details\":{}}},\"serviceName\":\"ingestionPipeline\"},\"backendServices\":{\"name\":\"Backend Services\",\"healthOk\":true,\"subservices\":{\"alerts\":{\"health\":true,\"details\":{}},\"assets\":{\"health\":true,\"details\":{}},\"assist\":{\"health\":true,\"details\":{}},\"chalice\":{\"health\":true,\"details\":{}},\"db\":{\"health\":true,\"details\":{}},\"ender\":{\"health\":true,\"details\":{}},\"frontend\":{\"health\":true,\"details\":{}},\"heuristics\":{\"health\":true,\"details\":{}},\"http\":{\"health\":true,\"details\":{}},\"ingress-nginx\":{\"health\":true,\"details\":{}},\"integrations\":{\"health\":true,\"details\":{}},\"sink\":{\"health\":true,\"details\":{}},\"sourcemapreader\":{\"health\":true,\"details\":{}},\"storage\":{\"health\":true,\"details\":{}}},\"serviceName\":\"backendServices\"}},\"details\":{\"numberOfSessionsCaptured\":216638,\"numberOfEventCaptured\":1840149}}"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "__$session-filter$__",
|
"name": "__$session-filter$__",
|
||||||
"value": "{\"name\":\"\",\"events\":[],\"custom\":{},\"rangeValue\":\"LAST_30_DAYS\",\"startDate\":1745422200000,\"endDate\":1748014200000,\"groupByUser\":false,\"sort\":\"startTs\",\"order\":\"desc\",\"strict\":false,\"eventsOrder\":\"then\",\"limit\":10,\"rangeName\":\"LAST_30_DAYS\",\"page\":1,\"perPage\":10,\"tab\":\"sessions\",\"filters\":[{\"type\":\"location\",\"isEvent\":true,\"value\":[\"\"],\"operator\":\"isAny\",\"source\":\"\",\"sourceOperator\":\"\",\"filters\":[]}]}"
|
"value": "{\"name\":\"\",\"events\":[],\"custom\":{},\"rangeValue\":\"LAST_24_HOURS\",\"startDate\":1748790000000,\"endDate\":1748876400000,\"groupByUser\":false,\"sort\":\"startTs\",\"order\":\"desc\",\"strict\":false,\"eventsOrder\":\"then\",\"limit\":10,\"page\":1,\"perPage\":10,\"tab\":\"sessions\",\"filters\":[]}"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,10 +1,8 @@
|
||||||
import { test, expect } from '@playwright/test';
|
import { test, expect } from '@playwright/test';
|
||||||
|
|
||||||
test('check if dashboards exist', async ({ page }) => {
|
test('Check if dashboards exist', async ({ page }) => {
|
||||||
await page.goto('http://localhost:3333/login');
|
await page.goto('http://localhost:3333/login');
|
||||||
await page.locator('[data-test-id="login"]').click();
|
|
||||||
await page.locator('[data-test-id="login"]').fill('andrei@openreplay.com');
|
await page.locator('[data-test-id="login"]').fill('andrei@openreplay.com');
|
||||||
await page.locator('[data-test-id="password"]').click();
|
|
||||||
await page.locator('[data-test-id="password"]').fill('Andrey123!');
|
await page.locator('[data-test-id="password"]').fill('Andrey123!');
|
||||||
await page.locator('[data-test-id="log-button"]').click();
|
await page.locator('[data-test-id="log-button"]').click();
|
||||||
await page.getByText('Dashboards').click();
|
await page.getByText('Dashboards').click();
|
||||||
|
|
|
||||||
|
|
@ -5,9 +5,7 @@ testUseAuthState();
|
||||||
|
|
||||||
test('check session list after change period', async ({ page }) => {
|
test('check session list after change period', async ({ page }) => {
|
||||||
await page.goto('http://localhost:3333/login');
|
await page.goto('http://localhost:3333/login');
|
||||||
await page.locator('[data-test-id="login"]').click();
|
|
||||||
await page.locator('[data-test-id="login"]').fill('andrei@openreplay.com');
|
await page.locator('[data-test-id="login"]').fill('andrei@openreplay.com');
|
||||||
await page.locator('[data-test-id="password"]').click();
|
|
||||||
await page.locator('[data-test-id="password"]').fill('Andrey123!');
|
await page.locator('[data-test-id="password"]').fill('Andrey123!');
|
||||||
await page.locator('[data-test-id="log-button"]').click();
|
await page.locator('[data-test-id="log-button"]').click();
|
||||||
await page.getByRole('button', { name: 'Android caret-down' }).click();
|
await page.getByRole('button', { name: 'Android caret-down' }).click();
|
||||||
|
|
|
||||||
|
|
@ -2,10 +2,7 @@ import { test, expect } from '@playwright/test';
|
||||||
|
|
||||||
test('Sign in flow', async ({ page }) => {
|
test('Sign in flow', async ({ page }) => {
|
||||||
await page.goto('/');
|
await page.goto('/');
|
||||||
await page.locator('[data-test-id="login"]').click();
|
|
||||||
await page.locator('.ant-input-affix-wrapper').first().click();
|
|
||||||
await page.locator('[data-test-id="login"]').fill('andrei@openreplay.com');
|
await page.locator('[data-test-id="login"]').fill('andrei@openreplay.com');
|
||||||
await page.locator('[data-test-id="password"]').click();
|
|
||||||
await page.locator('[data-test-id="password"]').fill('Andrey123!');
|
await page.locator('[data-test-id="password"]').fill('Andrey123!');
|
||||||
await page.locator('[data-test-id="log-button"]').click();
|
await page.locator('[data-test-id="log-button"]').click();
|
||||||
await expect(page.getByRole('heading', { name: 'Sessions' })).toBeVisible();
|
await expect(page.getByRole('heading', { name: 'Sessions' })).toBeVisible();
|
||||||
|
|
|
||||||
|
|
@ -1,15 +1,14 @@
|
||||||
import { test, expect } from '@playwright/test';
|
import { test, expect } from '@playwright/test';
|
||||||
import { testUseAuthState } from './helpers';
|
|
||||||
|
|
||||||
testUseAuthState();
|
test('Spots should display', async ({ page }) => {
|
||||||
|
|
||||||
test('check session list after change period', async ({ page }) => {
|
|
||||||
await page.goto('http://localhost:3333/login');
|
await page.goto('http://localhost:3333/login');
|
||||||
await page.locator('[data-test-id="login"]').click();
|
|
||||||
await page.locator('[data-test-id="login"]').fill('andrei@openreplay.com');
|
await page.locator('[data-test-id="login"]').fill('andrei@openreplay.com');
|
||||||
await page.locator('[data-test-id="password"]').click();
|
|
||||||
await page.locator('[data-test-id="password"]').fill('Andrey123!');
|
await page.locator('[data-test-id="password"]').fill('Andrey123!');
|
||||||
await page.locator('[data-test-id="log-button"]').click();
|
await page.locator('[data-test-id="log-button"]').click();
|
||||||
|
await page.getByText('Spots').click();
|
||||||
|
await page.waitForTimeout(1000);
|
||||||
|
const spotItems = (
|
||||||
|
await page.locator('[data-test-id="spot-list-item"]').all()
|
||||||
|
).length;
|
||||||
|
expect(spotItems).toBeGreaterThan(0);
|
||||||
});
|
});
|
||||||
|
|
@ -1,25 +1,32 @@
|
||||||
import { test, expect } from '@playwright/test';
|
import { test, expect } from '@playwright/test';
|
||||||
|
|
||||||
test('test', async ({ page }) => {
|
test('The freshest session from openreplay website doesnt have white screen', async ({ page }) => {
|
||||||
await page.goto('http://localhost:3333/login');
|
await page.goto('http://localhost:3333/login');
|
||||||
await page.locator('[data-test-id="login"]').fill('andrei@openreplay.com');
|
await page.locator('[data-test-id="login"]').fill('andrei@openreplay.com');
|
||||||
await page.locator('[data-test-id="password"]').click();
|
|
||||||
await page.locator('[data-test-id="password"]').fill('Andrey123!');
|
await page.locator('[data-test-id="password"]').fill('Andrey123!');
|
||||||
await page.locator('[data-test-id="log-button"]').click();
|
await page.locator('[data-test-id="log-button"]').click();
|
||||||
await page.getByTitle('Past 24 Hours').click();
|
await page.waitForTimeout(1000);
|
||||||
|
await page.locator('[data-test-id="session-list-header"]').locator('[data-test-id="widget-select-date-range"]').click();
|
||||||
await page.getByText('Past 30 Days').click();
|
await page.getByText('Past 30 Days').click();
|
||||||
|
await page.locator('[data-test-id="project-dropdown"]').click();
|
||||||
await page.getByRole('button', { name: 'Android caret-down' }).click();
|
await page.getByRole('button', { name: 'Android caret-down' }).click();
|
||||||
await page.getByText('OpenReplay Documentation Site').click();
|
await page.getByText('OpenReplay Documentation Site').click();
|
||||||
await page.locator('.group').first().click();
|
|
||||||
await page
|
await page.waitForTimeout(1000);
|
||||||
.locator('div')
|
const borderBlocks = await page.locator('.border-b').elementHandles();
|
||||||
.filter({
|
if (borderBlocks.length >= 2) {
|
||||||
hasText: /^Anonymous UserMay 21, 03:48pm··Edge, Mac OS X, Desktop·More$/,
|
const secondBlock = borderBlocks[1];
|
||||||
})
|
const playButton = await secondBlock.$('#play-button');
|
||||||
.first()
|
|
||||||
.click({
|
if (playButton) {
|
||||||
button: 'right',
|
const link = await playButton.$('a');
|
||||||
});
|
if (link) {
|
||||||
|
await link.click();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
await page.waitForTimeout(1000);
|
||||||
const iframeElement = await page
|
const iframeElement = await page
|
||||||
.locator('iframe[class^="screen-module__iframe"]')
|
.locator('iframe[class^="screen-module__iframe"]')
|
||||||
.first();
|
.first();
|
||||||
|
|
@ -20,13 +20,9 @@
|
||||||
"name": "__$user-gettingStarted$__",
|
"name": "__$user-gettingStarted$__",
|
||||||
"value": "{\"steps\":[{\"title\":\"🛠️ Install OpenReplay\",\"status\":\"completed\"},{\"title\":\"🕵️ Identify Users\",\"status\":\"completed\"},{\"title\":\"🧑💻 Invite Team Members\",\"status\":\"completed\"},{\"title\":\"🔌 Integrations\",\"status\":\"completed\"}],\"status\":\"completed\"}"
|
"value": "{\"steps\":[{\"title\":\"🛠️ Install OpenReplay\",\"status\":\"completed\"},{\"title\":\"🕵️ Identify Users\",\"status\":\"completed\"},{\"title\":\"🧑💻 Invite Team Members\",\"status\":\"completed\"},{\"title\":\"🔌 Integrations\",\"status\":\"completed\"}],\"status\":\"completed\"}"
|
||||||
},
|
},
|
||||||
{
|
|
||||||
"name": "__$global-destinationPath$__",
|
|
||||||
"value": "/"
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"name": "___$or_spotToken$___",
|
"name": "___$or_spotToken$___",
|
||||||
"value": "eyJhbGciOiJIUzUxMiIsInR5cCI6IkpXVCJ9.eyJ1c2VySWQiOjU4LCJ0ZW5hbnRJZCI6MSwiZXhwIjoxNzQ4MDE2NDcwLCJpc3MiOiJPcGVuUmVwbGF5LW9zcyIsImlhdCI6MTc0ODAxNTg3MCwiYXVkIjoic3BvdDpPcGVuUmVwbGF5In0.iCpJO-SSL8nmHhNGPXcSBTXd3L9Tn57sBS5Zhia500pqWcdfuR0RiRQ_zN8DkOh0Wcnx6IygdvBAAdZj-auvJQ"
|
"value": "eyJhbGciOiJIUzUxMiIsInR5cCI6IkpXVCJ9.eyJ1c2VySWQiOjU4LCJ0ZW5hbnRJZCI6MSwiZXhwIjoxNzQ4OTQ1MTQxLCJpc3MiOiJPcGVuUmVwbGF5LW9zcyIsImlhdCI6MTc0ODk0NDU0MSwiYXVkIjoic3BvdDpPcGVuUmVwbGF5In0._QEHvIc8ShH0PsRPtDQAo50Dc-H-Adpu8CZKXQsPF31GSLUl5SS9MV92xntRxfcloigRA1Hz2F817EF5jrgNJg"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "__$session-timezone$__",
|
"name": "__$session-timezone$__",
|
||||||
|
|
@ -38,11 +34,11 @@
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "__openreplay_health_status",
|
"name": "__openreplay_health_status",
|
||||||
"value": "1748015880384"
|
"value": "1748944551307"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "__$user-siteId$__",
|
"name": "__$user-siteId$__",
|
||||||
"value": "109"
|
"value": "65"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "__or__langBannerClosed",
|
"name": "__or__langBannerClosed",
|
||||||
|
|
@ -50,15 +46,19 @@
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "AuthStore",
|
"name": "AuthStore",
|
||||||
"value": "{\"authDetails\":\"{\\\"tenants\\\":true,\\\"sso\\\":null,\\\"ssoProvider\\\":null,\\\"enforceSSO\\\":null,\\\"edition\\\":\\\"foss\\\"}\",\"__mps__\":{\"expireInTimestamp\":1748019478752}}"
|
"value": "{\"authDetails\":\"{\\\"tenants\\\":true,\\\"sso\\\":null,\\\"ssoProvider\\\":null,\\\"enforceSSO\\\":null,\\\"edition\\\":\\\"foss\\\"}\",\"__mps__\":{\"expireInTimestamp\":1748948149584}}"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "UserStore",
|
"name": "UserStore",
|
||||||
"value": "{\"siteId\":null,\"tenants\":[],\"jwt\":\"eyJhbGciOiJIUzUxMiIsInR5cCI6IkpXVCJ9.eyJ1c2VySWQiOjU4LCJ0ZW5hbnRJZCI6MSwiZXhwIjoxNzQ4MTAyMjcwLCJpc3MiOiJPcGVuUmVwbGF5LW9zcyIsImlhdCI6MTc0ODAxNTg3MCwiYXVkIjoiZnJvbnQ6T3BlblJlcGxheSJ9.YwXb8jcPEegspmIUlQV4DImo0SJ6SP0jO9MLLyX-F7W6w4imTQjJfhhi9mkdf0TijnTAifni6XFmW7rPbdNObQ\",\"spotJwt\":\"eyJhbGciOiJIUzUxMiIsInR5cCI6IkpXVCJ9.eyJ1c2VySWQiOjU4LCJ0ZW5hbnRJZCI6MSwiZXhwIjoxNzQ4MDE2NDcwLCJpc3MiOiJPcGVuUmVwbGF5LW9zcyIsImlhdCI6MTc0ODAxNTg3MCwiYXVkIjoic3BvdDpPcGVuUmVwbGF5In0.iCpJO-SSL8nmHhNGPXcSBTXd3L9Tn57sBS5Zhia500pqWcdfuR0RiRQ_zN8DkOh0Wcnx6IygdvBAAdZj-auvJQ\",\"scopeState\":2,\"onboarding\":false,\"account\":\"{\\\"id\\\":58,\\\"email\\\":\\\"andrei@openreplay.com\\\",\\\"smtp\\\":false,\\\"expirationDate\\\":-1,\\\"permissions\\\":[],\\\"settings\\\":{\\\"modules\\\":[\\\"usability-tests\\\",\\\"feature-flags\\\"]},\\\"iceServers\\\":[],\\\"hasPassword\\\":true,\\\"apiKey\\\":\\\"48Vph82zUEWHmfPSUbgG\\\",\\\"edition\\\":\\\"foss\\\",\\\"optOut\\\":false,\\\"versionNumber\\\":\\\"1.17.0\\\",\\\"name\\\":\\\"Andrei\\\",\\\"createdAt\\\":1652690354756,\\\"admin\\\":true,\\\"superAdmin\\\":false}\"}"
|
"value": "{\"siteId\":null,\"tenants\":[],\"jwt\":\"eyJhbGciOiJIUzUxMiIsInR5cCI6IkpXVCJ9.eyJ1c2VySWQiOjU4LCJ0ZW5hbnRJZCI6MSwiZXhwIjoxNzQ5MDMwOTQxLCJpc3MiOiJPcGVuUmVwbGF5LW9zcyIsImlhdCI6MTc0ODk0NDU0MSwiYXVkIjoiZnJvbnQ6T3BlblJlcGxheSJ9.YHb2kldXFPzP2ecGoyPOo6I7_KH0BqhimOQKa1VtvSe_LTf2AzQNvKAYmsnx6-55lWX_b4wV5g4s4cdsYexOdw\",\"spotJwt\":\"eyJhbGciOiJIUzUxMiIsInR5cCI6IkpXVCJ9.eyJ1c2VySWQiOjU4LCJ0ZW5hbnRJZCI6MSwiZXhwIjoxNzQ4OTQ1MTQxLCJpc3MiOiJPcGVuUmVwbGF5LW9zcyIsImlhdCI6MTc0ODk0NDU0MSwiYXVkIjoic3BvdDpPcGVuUmVwbGF5In0._QEHvIc8ShH0PsRPtDQAo50Dc-H-Adpu8CZKXQsPF31GSLUl5SS9MV92xntRxfcloigRA1Hz2F817EF5jrgNJg\",\"scopeState\":2,\"onboarding\":false,\"account\":\"{\\\"id\\\":58,\\\"email\\\":\\\"andrei@openreplay.com\\\",\\\"smtp\\\":false,\\\"expirationDate\\\":-1,\\\"permissions\\\":[],\\\"settings\\\":{\\\"modules\\\":[\\\"usability-tests\\\",\\\"feature-flags\\\"]},\\\"iceServers\\\":[],\\\"hasPassword\\\":true,\\\"apiKey\\\":\\\"48Vph82zUEWHmfPSUbgG\\\",\\\"edition\\\":\\\"foss\\\",\\\"optOut\\\":false,\\\"versionNumber\\\":\\\"1.17.0\\\",\\\"name\\\":\\\"Andrei\\\",\\\"createdAt\\\":1652690354756,\\\"admin\\\":true,\\\"superAdmin\\\":false}\"}"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "__openreplay_health_response",
|
"name": "__openreplay_health_response",
|
||||||
"value": "{\"overallHealth\":true,\"healthMap\":{\"databases\":{\"name\":\"Databases\",\"healthOk\":true,\"subservices\":{\"postgres\":{\"health\":true,\"details\":{}}},\"serviceName\":\"databases\"},\"ingestionPipeline\":{\"name\":\"Ingestion Pipeline\",\"healthOk\":true,\"subservices\":{\"redis\":{\"health\":true,\"details\":{}}},\"serviceName\":\"ingestionPipeline\"},\"backendServices\":{\"name\":\"Backend Services\",\"healthOk\":true,\"subservices\":{\"alerts\":{\"health\":true,\"details\":{}},\"assets\":{\"health\":true,\"details\":{}},\"assist\":{\"health\":true,\"details\":{}},\"chalice\":{\"health\":true,\"details\":{}},\"db\":{\"health\":true,\"details\":{}},\"ender\":{\"health\":true,\"details\":{}},\"frontend\":{\"health\":true,\"details\":{}},\"heuristics\":{\"health\":true,\"details\":{}},\"http\":{\"health\":true,\"details\":{}},\"ingress-nginx\":{\"health\":true,\"details\":{}},\"integrations\":{\"health\":true,\"details\":{}},\"sink\":{\"health\":true,\"details\":{}},\"sourcemapreader\":{\"health\":true,\"details\":{}},\"storage\":{\"health\":true,\"details\":{}}},\"serviceName\":\"backendServices\"}},\"details\":{\"numberOfSessionsCaptured\":214690,\"numberOfEventCaptured\":1816886}}"
|
"value": "{\"overallHealth\":true,\"healthMap\":{\"databases\":{\"name\":\"Databases\",\"healthOk\":true,\"subservices\":{\"postgres\":{\"health\":true,\"details\":{}}},\"serviceName\":\"databases\"},\"ingestionPipeline\":{\"name\":\"Ingestion Pipeline\",\"healthOk\":true,\"subservices\":{\"redis\":{\"health\":true,\"details\":{}}},\"serviceName\":\"ingestionPipeline\"},\"backendServices\":{\"name\":\"Backend Services\",\"healthOk\":true,\"subservices\":{\"alerts\":{\"health\":true,\"details\":{}},\"assets\":{\"health\":true,\"details\":{}},\"assist\":{\"health\":true,\"details\":{}},\"chalice\":{\"health\":true,\"details\":{}},\"db\":{\"health\":true,\"details\":{}},\"ender\":{\"health\":true,\"details\":{}},\"frontend\":{\"health\":true,\"details\":{}},\"heuristics\":{\"health\":true,\"details\":{}},\"http\":{\"health\":true,\"details\":{}},\"ingress-nginx\":{\"health\":true,\"details\":{}},\"integrations\":{\"health\":true,\"details\":{}},\"sink\":{\"health\":true,\"details\":{}},\"sourcemapreader\":{\"health\":true,\"details\":{}},\"storage\":{\"health\":true,\"details\":{}}},\"serviceName\":\"backendServices\"}},\"details\":{\"numberOfSessionsCaptured\":216813,\"numberOfEventCaptured\":1841202}}"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "__$session-filter$__",
|
||||||
|
"value": "{\"name\":\"\",\"events\":[],\"custom\":{},\"rangeValue\":\"LAST_30_DAYS\",\"startDate\":1746352800000,\"endDate\":1748944800000,\"groupByUser\":false,\"sort\":\"startTs\",\"order\":\"desc\",\"strict\":false,\"eventsOrder\":\"then\",\"limit\":10,\"rangeName\":\"LAST_30_DAYS\",\"page\":1,\"perPage\":10,\"tab\":\"sessions\",\"filters\":[{\"type\":\"location\",\"isEvent\":true,\"value\":[\"\"],\"operator\":\"isAny\",\"source\":\"\",\"sourceOperator\":\"\",\"filters\":[]}]}"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue