Closed JeremyFriesenGitHub closed 1 month ago
Name | Link |
---|---|
Latest commit | 4a2b55907cc93a8e9a0c7420144cd5c3cd9556c7 |
Latest deploy log | https://app.netlify.com/sites/cuhacking-docs/deploys/66d0e7de9787f4000849dd7f |
This pull request adds mobile and tablet layout tests for the docs site. It extends the existing test suite to cover responsive design elements and interactions specific to smaller screen sizes. The changes include new test cases for mobile and tablet layouts, updates to existing tests, and modifications to accommodate different viewport sizes.
Change | Details | Files |
---|---|---|
Added mobile layout tests |
|
apps/docs-e2e/src/docs.spec.ts |
Added tablet layout tests |
|
apps/docs-e2e/src/docs.spec.ts |
Updated constant definitions and URLs |
|
apps/docs-e2e/src/docs.spec.ts |
Modified 'Edit on GitHub' button functionality |
|
apps/docs/src/app/docs/[[...slug]]/page.tsx |
Name | Link |
---|---|
Latest commit | 1569eb2fb6fa7ef6aa89cf23451073cc16449adb |
Latest deploy log | https://app.netlify.com/sites/cuhacking-portal-dev/deploys/66db7d6ec4f0a40008ac8494 |
@JeremyFriesenGitHub
fix
instead. Because you didn't add documentation, but rather fixed the broken button that appears on all pages.@MFarabi619 any idea why the e2e tests timeout during the pipeline?
Great stuff
I like the screen size prefix for the tests
In the future you can also do this at a config level and have it show up as a project, that way it won't pollute your test names | ||
---|---|---|
@sourcery-ai review
[!WARNING]
Rate limit exceeded
@JeremyFriesenGitHub has exceeded the limit for the number of commits or files that can be reviewed per hour. Please wait 2 minutes and 21 seconds before requesting another review.
How to resolve this issue?
After the wait time has elapsed, a review can be triggered using the `@coderabbitai review` command as a PR comment. Alternatively, push new commits to this PR. We recommend that you space out your commits to avoid hitting the rate limit.How do rate limits work?
CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our [FAQ](https://coderabbit.ai/docs/faq) for further information.Commits
Files that changed from the base of the PR and between 539609678f65759ed538629c1a581ba983b85402 and 1569eb2fb6fa7ef6aa89cf23451073cc16449adb.
The changes involve updates to the Playwright configuration for enhanced test reliability and clarity, including the addition of retry logic and renaming browser projects to specify device types. The test suite for the documentation layout has been reorganized to improve coverage across mobile, tablet, and desktop views. A new navigation utility function has been introduced, alongside adjustments to the GitHub Actions workflow for better test management.
Files | Change Summary |
---|---|
apps/docs-e2e/playwright.config.ts |
Added retries: 2 for test retries; renamed browser projects to indicate device types; added a WebKit tablet project. |
apps/docs-e2e/src/docs.spec.ts |
Introduced clickAndGoToPage helper function; reorganized tests by device type; updated test descriptions and logic for skipping tests. |
.github/workflows/TEST_e2e.yml |
Increased test job timeout from 5 minutes to 10 minutes; separated test commands for each suite with HTML reporting; added unique names for report uploads. |
sequenceDiagram
participant User
participant TestSuite
participant ClickAndGoToPage
User->>TestSuite: Initiate Test
TestSuite->>ClickAndGoToPage: Call Function
ClickAndGoToPage->>User: Simulate Button Click
ClickAndGoToPage->>TestSuite: Wait for New Page
TestSuite->>User: Test Results
π° In the meadow, hops a rabbit bright,
With changes afoot, oh what a delight!
Tests now retry, with clarity they play,
Mobile and desktop, all in a ballet.
Hooray for the helpers, the paths now align,
A joyful leap forward, all will be fine! πΌ
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Edit on GitHub
button href in order to run successful tests for that linkSummary by Sourcery
Add mobile and tablet layout tests for the documentation site using Playwright, ensuring compatibility and functionality across different device sizes. Update the 'Edit on GitHub' button href to facilitate successful test execution.
New Features:
Enhancements:
Tests:
Summary by CodeRabbit
New Features
Bug Fixes
Documentation