UI test fixture: only the fixture token is affected, and never in an installed build #145

Closed
opened 2026-11-10 19:38:58 +00:00 by james.maes · 0 comments
Owner

Problem

The app has an offline fixture for its UI tests: with GCLO_UITEST_FIXTURE=1 in the environment, a workspace whose token is the fixture's fixed token is answered from a built-in organization instead of GitHub. Two things about it are looser than intended:

  • with the variable set, IsValidRepository answers "no" for every token, not only the fixture's, so in a real session every existing repository is treated as missing;
  • the variable is honoured in installed release builds, and nothing records that it was.

Scope

  • The fixture's git client asks the real client whether a folder is a repository.
  • The variable is ignored when the app runs as a Velopack-installed build.
  • One activity-log line when the fixture is enabled.
  • Threat model wording corrected.

Acceptance

The UI suite passes against the unpackaged build. Zero warnings; format clean.

## Problem The app has an offline fixture for its UI tests: with `GCLO_UITEST_FIXTURE=1` in the environment, a workspace whose token is the fixture's fixed token is answered from a built-in organization instead of GitHub. Two things about it are looser than intended: - with the variable set, `IsValidRepository` answers "no" for every token, not only the fixture's, so in a real session every existing repository is treated as missing; - the variable is honoured in installed release builds, and nothing records that it was. ## Scope - The fixture's git client asks the real client whether a folder is a repository. - The variable is ignored when the app runs as a Velopack-installed build. - One activity-log line when the fixture is enabled. - Threat model wording corrected. ## Acceptance The UI suite passes against the unpackaged build. Zero warnings; format clean.
james.maes added the quality label 2026-11-10 19:38:58 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: KofTwentyTwo/gclo#145