Skip to content

test: add retry for shortcuts case#490

Merged
9aoy merged 1 commit intomainfrom
shortcuts-test-retry
Aug 19, 2025
Merged

test: add retry for shortcuts case#490
9aoy merged 1 commit intomainfrom
shortcuts-test-retry

Conversation

@9aoy
Copy link
Copy Markdown
Collaborator

@9aoy 9aoy commented Aug 19, 2025

Summary

add retry for shortcuts case.

Related Links

Checklist

  • Tests updated (or not required).
  • Documentation updated (or not required).

Copilot AI review requested due to automatic review settings August 19, 2025 09:47
@netlify
Copy link
Copy Markdown

netlify bot commented Aug 19, 2025

Deploy Preview for rstest-dev ready!

Name Link
🔨 Latest commit 375bad8
🔍 Latest deploy log https://app.netlify.com/projects/rstest-dev/deploys/68a4482ec58d12000821d0b2
😎 Deploy Preview https://deploy-preview-490--rstest-dev.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds retry configuration for the shortcuts test case to improve test reliability. The change configures the test framework to retry failing tests up to 3 times.

Key Changes

  • Imports the rs configuration object from the test framework
  • Sets a global retry configuration of 3 attempts for test cases in the shortcuts test file

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
You can also share your feedback on Copilot code review for a chance to win a $100 gift card. Take the survey.

rs.setConfig({
retry: 3,
});

Copy link

Copilot AI Aug 19, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[nitpick] Global test configuration should be moved to a setup file or test configuration rather than being set in individual test files. This ensures consistent behavior across all tests and avoids duplication.

Suggested change

Copilot uses AI. Check for mistakes.
@9aoy 9aoy merged commit f899c9a into main Aug 19, 2025
17 checks passed
@9aoy 9aoy deleted the shortcuts-test-retry branch August 19, 2025 09:57
@9aoy 9aoy mentioned this pull request Aug 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants