Skip to content

Test: remove no longer needed custom configs#962

Open
dominikvagner wants to merge 1 commit into
content-services:mainfrom
dominikvagner:ts-client-playwright-network-logs
Open

Test: remove no longer needed custom configs#962
dominikvagner wants to merge 1 commit into
content-services:mainfrom
dominikvagner:ts-client-playwright-network-logs

Conversation

@dominikvagner
Copy link
Copy Markdown
Member

Warning

This will need to update the test-utils ref and merge that together, with those changes!

Summary

These custom dynamic configs aren't going to be needed after client changes done in "test-utils", they will be dynamic by default.

Testing steps

All tests pass.

#testwith content-services/content-sources-backend#1453

@dominikvagner dominikvagner requested a review from a team as a code owner April 9, 2026 06:41
@dominikvagner dominikvagner marked this pull request as draft April 9, 2026 06:41
Copy link
Copy Markdown

@sourcery-ai sourcery-ai Bot left a comment

Choose a reason for hiding this comment

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

Hey - I've left some high level feedback:

  • Now that the dynamic API client is injected via the client fixture, consider encapsulating the remaining ensureValidToken(..., '<TOKEN>.json', ...) + API call patterns (e.g., the polling block in CanUpdateSystemWithTemplate) into a small helper so token file names and validity checks aren’t duplicated and stay consistent across tests.
Prompt for AI Agents
Please address the comments from this code review:

## Overall Comments
- Now that the dynamic API client is injected via the `client` fixture, consider encapsulating the remaining `ensureValidToken(..., '<TOKEN>.json', ...)` + API call patterns (e.g., the polling block in `CanUpdateSystemWithTemplate`) into a small helper so token file names and validity checks aren’t duplicated and stay consistent across tests.

Sourcery is free for open source - if you like our reviews please consider sharing them ✨
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.

These custom dynamic configs aren't going to be needed after client
changes done in "test-utils", they will be dynamic by default.
@dominikvagner dominikvagner force-pushed the ts-client-playwright-network-logs branch from c3a8d86 to aadf5f6 Compare April 9, 2026 06:49
@katarinazaprazna katarinazaprazna self-assigned this Apr 9, 2026
@dominikvagner dominikvagner marked this pull request as ready for review April 13, 2026 07:27
Copy link
Copy Markdown

@sourcery-ai sourcery-ai Bot left a comment

Choose a reason for hiding this comment

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

Hey - I've left some high level feedback:

  • In CanUpdateSystemWithTemplate.spec.ts, now that the shared client is used for API calls, consider encapsulating or removing the explicit ensureValidToken(page, 'LAYERED_REPO_TOKEN.json', 5) in the polling step to avoid duplicated token-handling logic between the client fixture and the tests.
Prompt for AI Agents
Please address the comments from this code review:

## Overall Comments
- In `CanUpdateSystemWithTemplate.spec.ts`, now that the shared `client` is used for API calls, consider encapsulating or removing the explicit `ensureValidToken(page, 'LAYERED_REPO_TOKEN.json', 5)` in the polling step to avoid duplicated token-handling logic between the client fixture and the tests.

Sourcery is free for open source - if you like our reviews please consider sharing them ✨
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.

Copy link
Copy Markdown
Contributor

@katarinazaprazna katarinazaprazna left a comment

Choose a reason for hiding this comment

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

Looks great! The code feels a lot cleaner now. Thanks! ✨

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