Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add recording #60

Merged
merged 28 commits into from
Jun 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
78be7fb
feat: add recording
nash1111 Jun 7, 2024
9de9a4e
chore: update currentIssues.json lastUpdated.ts
github-actions[bot] Jun 7, 2024
66a3b6a
chore: update test-results
github-actions[bot] Jun 7, 2024
a2d8173
Merge branch 'issue-59' of https://github.com/nash1111/nash1111-tech-…
github-actions[bot] Jun 7, 2024
284efa8
wip
nash1111 Jun 7, 2024
55dcca7
wip
nash1111 Jun 7, 2024
42ad2c0
fix: conflict
nash1111 Jun 7, 2024
e374b80
chore: update currentIssues.json lastUpdated.ts
github-actions[bot] Jun 7, 2024
d37acfc
chore: update test-results
github-actions[bot] Jun 7, 2024
4d54e28
Merge branch 'issue-59' of https://github.com/nash1111/nash1111-tech-…
github-actions[bot] Jun 7, 2024
42b2084
wip
nash1111 Jun 14, 2024
4f0ee46
wip
nash1111 Jun 14, 2024
110c57d
fix: conflict
nash1111 Jun 30, 2024
098684b
chore: update currentIssues.json lastUpdated.ts
github-actions[bot] Jun 30, 2024
d37d115
chore: update test-results
github-actions[bot] Jun 30, 2024
8fab28a
Merge branch 'issue-59' of https://github.com/nash1111/nash1111-tech-…
github-actions[bot] Jun 30, 2024
dd2ffc4
wip: duplicated mp4
nash1111 Jun 30, 2024
a4826a5
fix: conflict
nash1111 Jun 30, 2024
3902106
chore: update currentIssues.json lastUpdated.ts
github-actions[bot] Jun 30, 2024
f5f057d
chore: update test-results
github-actions[bot] Jun 30, 2024
63aea7e
Merge branch 'issue-59' of https://github.com/nash1111/nash1111-tech-…
github-actions[bot] Jun 30, 2024
2860e82
feat: add recording test
nash1111 Jun 30, 2024
ffa6dfd
fix: conflict
nash1111 Jun 30, 2024
a3725c6
fix: conflict
nash1111 Jun 30, 2024
6943cd5
Merge branch 'master' into issue-59
nash1111 Jun 30, 2024
46ec09c
chore: update currentIssues.json lastUpdated.ts
github-actions[bot] Jun 30, 2024
100ab1e
chore: remove unused gif
nash1111 Jun 30, 2024
0a26c51
Merge branch 'issue-59' of https://github.com/nash1111/nash1111-tech-…
nash1111 Jun 30, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions app/components/NavigationButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,22 @@ interface NavigationButtonProps {
label: string;
}

//function NavImage({ src, alt, id }) {
// const to = `/images/${idx}`;
// const vt = unstable_useViewTransitionState(href);
// return (
// <Link to={to} unstable_viewTransition>
// <img
// src={src}
// alt={alt}
// style={{
// viewTransitionName: vt ? "image-expand" : "",
// }}
// />
// </Link>
// );
// }

export const NavigationButton = ({ path, label }: NavigationButtonProps) => {
return (
<div className="flex gap-4">
Expand Down
2 changes: 1 addition & 1 deletion public/lastUpdated.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export const lastUpdated = "2024-06-30T08:06:21";
export const lastUpdated = "2024-06-30T12:13:19";
1 change: 0 additions & 1 deletion server.pid

This file was deleted.

Binary file modified test-results/screenshots/blog-page-DarkDesktop.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified test-results/screenshots/blog-page-MobileSafari.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified test-results/screenshots/blog-page-chromium.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified test-results/screenshots/task-page-DarkDesktop.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified test-results/screenshots/task-page-MobileSafari.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified test-results/screenshots/task-page-chromium.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added test-results/videos/DarkDesktop/blogPage.webm
Binary file not shown.
Binary file added test-results/videos/MobileSafari/blogPage.webm
Binary file not shown.
Binary file added test-results/videos/chromium/blogPage.webm
Binary file not shown.
25 changes: 25 additions & 0 deletions tests/recordBlogViewTransition.spec.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
import { test } from '@playwright/test';

test.use({
video: {
mode: 'on',
}
});
test.describe('/task page', () => {
test('should render without crashing', async ({ page }, testInfo) => {
await page.goto('http://localhost:5173/blog');
await page.waitForSelector('text=個人ブログをNextからRemixに移行しました');
await page.getByText('個人ブログをNextからRemixに移行しました').click();
await page.waitForLoadState('networkidle');
await page.waitForTimeout(2000);
await page.evaluate(() => window.scrollTo(0, document.body.scrollHeight));
await page.waitForTimeout(2000);
await page.waitForSelector('button:has-text("Back to BLOG")');
await page.locator('button:has-text("Back to BLOG")').click();
await page.waitForTimeout(2000);
await page.waitForLoadState('networkidle');
await page.close();
await page.video()?.saveAs(`test-results/videos/${testInfo.project.name}/blogPage.webm`);
// webm->gif
});
});
Loading