Skip to content

Commit 92a3143

Browse files
Merge branch 'main' into aditya/add-link-to-heading
2 parents ea84fdb + 81a602d commit 92a3143

File tree

9 files changed

+20
-18
lines changed

9 files changed

+20
-18
lines changed

.github/workflows/playwright.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
- name: Install Playwright Browsers
1616
run: npx playwright install --with-deps
1717
- name: Run Playwright tests
18-
run: npx playwright test
18+
run: npx playwright test --project replay-chromium
1919
env:
2020
BASE_URL: ${{ github.event.deployment_status.target_url }}
2121
REPLAY_API_KEY: ${{ secrets.REPLAY_API_KEY }}

playwright.config.ts

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { PlaywrightTestConfig } from '@playwright/test'
1+
import { PlaywrightTestConfig, devices } from '@playwright/test'
22
import { devices as replayDevices } from '@replayio/playwright'
33
import dotenv from 'dotenv';
44
dotenv.config();
@@ -22,6 +22,10 @@ const config: PlaywrightTestConfig = {
2222
name: 'replay-chromium',
2323
use: { ...(replayDevices['Replay Chromium'] as any) },
2424
},
25+
{
26+
name: 'chromium',
27+
use: { ...devices['Desktop Chrome'] },
28+
},
2529
],
2630
}
2731
export default config

src/app/ci-workflows/generate-api-key/page.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ description: Your API key authenticates you with Replay App and allows you to re
55

66
## Creating a new API key
77

8-
1. To generate a new API key, go to Replay app and open **API Keys** section in the settings window.
9-
2. Create a label for your API key and click "Add"
8+
1. To generate a new API key, go to Replay app and **API Keys** section in the team settings section.
9+
2. Add permissions and name to your API key and click "Add"
1010
3. Copy your API key
1111

1212
{% video src="generateApiKey" /%}
@@ -17,7 +17,7 @@ Make sure to copy and save your key immediately as you will not be able to see i
1717

1818
## Delete API key
1919

20-
Your API keys are accessible in your settings. You can delete any API key if necessary. A list of all active API keys is also available in the settings.
20+
Your API keys are accessible in your team settings. You can delete any API key if necessary. A list of all active API keys is also available in the team settings.
2121

2222
{% video src="deleteApiKey" /%}
2323

src/components/Analytics.tsx

-4
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,6 @@ export default function Analytics() {
2121
src="/stats/script.js"
2222
data-website-id="9dab9357-6fa2-48ab-966a-82c4e1bb67fe"
2323
></script>
24-
<script
25-
async
26-
src="https://cdn.mxpnl.com/libs/mixpanel-2-latest.min.js"
27-
></script>
2824
</>
2925
)
3026
}

src/components/Zoom.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ export const Zoom = ({ children }: {children: React.ReactNode}) => {
8181
onClick={closeWrapper}
8282
/>
8383
) : null}
84-
<div data-testid="zoomed-out-player" style={styles} ref={containerRef} onClick={handleImageZoom}>
84+
<div data-testid="image-with-zoom" style={styles} ref={containerRef} onClick={handleImageZoom}>
8585
{children}
8686
</div>
8787
</>

src/videos/delete-api-key.mp4.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"status":"ready","originalFilePath":"src/videos/delete-api-key.mp4","provider":"mux","providerMetadata":{"mux":{"uploadId":"uh401pwI8VNSBXb01lRkEuxRgZ201Z70001Hfczp4djVyF100","assetId":"chOyjgGQEPz5GWiz00BQyinKVFbFnqPtBy018P8e00FLJ8","playbackId":"BLAOnX0200Hg6wZl1MWsdKH2q87p4re601I014dQ020155OJs"}},"createdAt":1713199254484,"updatedAt":1713199260142,"size":1625673,"sources":[{"src":"https://stream.mux.com/BLAOnX0200Hg6wZl1MWsdKH2q87p4re601I014dQ020155OJs.m3u8","type":"application/x-mpegURL"}],"poster":"https://image.mux.com/BLAOnX0200Hg6wZl1MWsdKH2q87p4re601I014dQ020155OJs/thumbnail.webp","blurDataURL":"data:image/webp;base64,UklGRoAAAABXRUJQVlA4IHQAAADQAQCdASoQAAkAAQAcJaQAAv+qH8aeAAD+/1vVEycw3//JGua8DD/7dY7HbzWEw9Ju50oZjtlx//wfWmu6NvfMNH8gJv/sQ/+072RhhY/Pcd1/RHf6aMx2+lfbDZQabBJeSBF8ciqcuM99nKsX1c3PBTwAAA=="}
1+
{"status":"ready","originalFilePath":"src/videos/delete-api-key.mp4","provider":"mux","providerMetadata":{"mux":{"uploadId":"iTabAgrzoPjqAavfVqkwwtjNCsFSwkkmqjQAFfEfsLY","assetId":"b9qnwRn6jx2K2Ya5zR8aSTT4402wr8keUcvD7yYkv4Y8","playbackId":"bVgPOhB71ix02ozUpyKHYbnPCaWLfX62T2zEnOogw6OM"}},"createdAt":1714131534113,"updatedAt":1714131539417,"size":1182619,"sources":[{"src":"https://stream.mux.com/bVgPOhB71ix02ozUpyKHYbnPCaWLfX62T2zEnOogw6OM.m3u8","type":"application/x-mpegURL"}],"poster":"https://image.mux.com/bVgPOhB71ix02ozUpyKHYbnPCaWLfX62T2zEnOogw6OM/thumbnail.webp","blurDataURL":"data:image/webp;base64,UklGRkoAAABXRUJQVlA4ID4AAABwAQCdASoQAAkAAQAcJYwCdAGIQAD+/Ec3GQdKiT/aP+Y542wXBtB2/6QQ6I//qun3XTVlp/5tNhyYmjXwAA=="}

src/videos/generate-api-key.mp4.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"status":"ready","originalFilePath":"src/videos/generate-api-key.mp4","provider":"mux","providerMetadata":{"mux":{"uploadId":"D27TxZ2JV1xr02TaXRtK02l9yEhxXRUrM01CAcu8IzDksU","assetId":"3qHdNCdf5B4XozWPdOCcDw68DdrIcEuh3XrcpjQPGhk","playbackId":"tK5QsHRs2JtARZTguWbClqLoO5IEr6NJiUkNLZUkU400"}},"createdAt":1713171829593,"updatedAt":1713171835448,"size":2015961,"sources":[{"src":"https://stream.mux.com/tK5QsHRs2JtARZTguWbClqLoO5IEr6NJiUkNLZUkU400.m3u8","type":"application/x-mpegURL"}],"poster":"https://image.mux.com/tK5QsHRs2JtARZTguWbClqLoO5IEr6NJiUkNLZUkU400/thumbnail.webp","blurDataURL":"data:image/webp;base64,UklGRlAAAABXRUJQVlA4IEQAAADwAQCdASoQAAkAAQAcJZwC7AEPAj+x6RAA/v8g9WXl8CmWu3VA51u9r5dfxpio4Quf1tiKgz42kMT0X0ab/LiJVSoAAA=="}
1+
{"status":"ready","originalFilePath":"src/videos/generate-api-key.mp4","provider":"mux","providerMetadata":{"mux":{"uploadId":"KFSFWzjfkpm01q7Y2UFdk7ODiQeW28izTlFBZWOw00ZTE","assetId":"ktDpMY9cuo4pTOHownyWju59kLP6geot4CsQprz7UTU","playbackId":"ISWXuMOvC6HyJXLIdwF02Fd501cVZcUTYbNO5h01xCqsGg"}},"createdAt":1714131388968,"updatedAt":1714131393374,"size":2258834,"sources":[{"src":"https://stream.mux.com/ISWXuMOvC6HyJXLIdwF02Fd501cVZcUTYbNO5h01xCqsGg.m3u8","type":"application/x-mpegURL"}],"poster":"https://image.mux.com/ISWXuMOvC6HyJXLIdwF02Fd501cVZcUTYbNO5h01xCqsGg/thumbnail.webp","blurDataURL":"data:image/webp;base64,UklGRloAAABXRUJQVlA4IE4AAABQAgCdASoQAAkAAQAcJYwCdBHABl83XIS/RgAA/v6RUPH3K8ojs72tidensT3sRxE8q6QX2uD7KIAj4nzTPcJ23gMM2LSz/hqQApYAAAA="}

tests/navigation.spec.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@ test('navigation expanding works', async ({ page }) => {
44

55
await page.goto('/')
66
await page.getByText('Intro to time travel').click()
7-
const navigationItem = page.getByText('What is time travel?', {exact: true})
7+
const navigationItem = page.getByText('Why time travel?')
88
await expect(navigationItem).toBeVisible()
99

1010
})
1111

1212
test('navigation collapsing works', async ({ page }) => {
1313

14-
await page.goto('/time-travel-intro/what-is-time-travel')
14+
await page.goto('/time-travel-intro/why-time-travel')
1515
// sidebar items are expanded
1616
const navigationItem = page.getByText('Annotate the timeline', {exact: true})
1717
await expect(navigationItem).toBeVisible()

tests/zoomPlayer.spec.ts

+6-4
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,18 @@
11
import { test, expect } from '@playwright/test'
22

3-
test.skip('player zoom in', async ({ page }) => {
3+
test('player zoom in', async ({ page }) => {
44

55
await page.goto('/test-runners/playwright/debugging-tests')
66

7-
const playerZoomedOut = page.locator('[data-testid="zoomed-out-player"]').first()
8-
await playerZoomedOut.click()
7+
const image = page.locator('[data-testid="image-with-zoom"]').first()
8+
await image.scrollIntoViewIfNeeded()
9+
await image.click()
910

1011
const playerZoomedIn = page.locator('[data-testid="zoomed-in-player"]')
12+
await playerZoomedIn.scrollIntoViewIfNeeded()
1113
await expect(playerZoomedIn).toHaveCount(1)
1214

13-
playerZoomedIn.click()
15+
await image.click()
1416
await expect(playerZoomedIn).toHaveCount(0)
1517

1618
})

0 commit comments

Comments
 (0)