Skip to content

HQD-82: increased timeout for currency-exchange.spec.ts:6:1 playwright test to prevent falling#592

Open
VadymHrechukha wants to merge 1 commit into
hiqdev:masterfrom
VadymHrechukha:HQD-82_increased_timeout_for_currency-exchange.spec.ts_playwright_test_to_prevent_falling
Open

HQD-82: increased timeout for currency-exchange.spec.ts:6:1 playwright test to prevent falling#592
VadymHrechukha wants to merge 1 commit into
hiqdev:masterfrom
VadymHrechukha:HQD-82_increased_timeout_for_currency-exchange.spec.ts_playwright_test_to_prevent_falling

Conversation

@VadymHrechukha
Copy link
Copy Markdown
Contributor

@VadymHrechukha VadymHrechukha commented Apr 3, 2026

Summary by CodeRabbit

Release Notes

  • Tests
    • Updated test timeout configuration to allow extended test execution time.

Note: This release contains no user-facing changes. Updates are internal testing improvements only.

@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented Apr 3, 2026

📝 Walkthrough

Walkthrough

A single-line configuration change was added to a Playwright test file, setting a custom timeout of 180 seconds (180,000 milliseconds) via test.setTimeout(180_000) to allow the currency exchange test more time to complete.

Changes

Cohort / File(s) Summary
Test Configuration
tests/playwright/e2e/manager/currency-exchange.spec.ts
Added custom timeout configuration (test.setTimeout(180_000)) to allow the test 180 seconds to complete instead of relying on default timeout behavior.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~2 minutes

Suggested reviewers

  • SilverFire

Poem

🐰 A timeout so long, three minutes with might,
The currency test can exchange day and night,
With 180 seconds to spare,
No rushed affairs—just time to declare, ⏱️✨

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately describes the main change: increasing a timeout value for a specific Playwright test to prevent failures.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Copy Markdown

@coderabbitai coderabbitai Bot left a comment

Choose a reason for hiding this comment

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

🧹 Nitpick comments (1)
tests/playwright/e2e/manager/currency-exchange.spec.ts (1)

8-8: Valid fix, but consider investigating the root cause.

The test.setTimeout(180_000) syntax and placement are correct. However, 180 seconds is 6× the typical default timeout (30s), which suggests there may be an underlying performance issue worth investigating.

A few considerations:

  • Is the get-exchange-rates API call (line 18) consistently slow, or only intermittently?
  • Could specific waitFor options with targeted timeouts on slow operations be more precise than extending the entire test timeout?
  • A large global timeout can mask regressions if the test starts taking even longer in the future.

If this is a known environmental constraint (e.g., slow CI runners or external service latency), this change is acceptable. Otherwise, consider profiling the test to identify the bottleneck.

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@tests/playwright/e2e/manager/currency-exchange.spec.ts` at line 8, You
increased the global test timeout via test.setTimeout(180_000) which masks a
potential underlying slowness (see the get-exchange-rates API call referenced
around the get-exchange-rates use on line 18); instead of keeping a blanket 180s
timeout, investigate whether the getExchangeRates call is consistently slow and
either (a) add a targeted wait or waitFor with a specific timeout around the
slow operation (e.g., the code that calls get-exchange-rates), (b) add retries
or timeouts in the API call logic, or (c) mock/stub the external service in this
test if appropriate—replace the global test.setTimeout with the narrower change
once the root cause is resolved.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Nitpick comments:
In `@tests/playwright/e2e/manager/currency-exchange.spec.ts`:
- Line 8: You increased the global test timeout via test.setTimeout(180_000)
which masks a potential underlying slowness (see the get-exchange-rates API call
referenced around the get-exchange-rates use on line 18); instead of keeping a
blanket 180s timeout, investigate whether the getExchangeRates call is
consistently slow and either (a) add a targeted wait or waitFor with a specific
timeout around the slow operation (e.g., the code that calls
get-exchange-rates), (b) add retries or timeouts in the API call logic, or (c)
mock/stub the external service in this test if appropriate—replace the global
test.setTimeout with the narrower change once the root cause is resolved.

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 4b4060fd-5c4e-4649-86c0-887d663284ec

📥 Commits

Reviewing files that changed from the base of the PR and between c3c956c and 33edadb.

📒 Files selected for processing (1)
  • tests/playwright/e2e/manager/currency-exchange.spec.ts

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.

1 participant