Skip to content

Do not show loading screen on hosted site#4257

Open
burieberry wants to merge 2 commits intomainfrom
cs-10399-host-mode-hide-loading-screen
Open

Do not show loading screen on hosted site#4257
burieberry wants to merge 2 commits intomainfrom
cs-10399-host-mode-hide-loading-screen

Conversation

@burieberry
Copy link
Contributor

No description provided.

Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: c41fe5b3ad

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines 294 to 298
let visitPromise = visit('/test/Pet/non-existent.json');
await waitFor('[data-test-host-loading]');
assert.dom('[data-test-host-loading]').exists();
assert
.dom('[data-test-host-loading]')
.doesNotExist('Loading screen is never shown on host mode');
gate.fulfill();

Choose a reason for hiding this comment

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

P2 Badge Wait for gated fetch before asserting loading is absent

This assertion now runs immediately after visit('/test/Pet/non-existent.json'), but the route may not yet have reached the gated store.get call, so gate.fulfill() can fire before any real loading state is exercised. In that case the test can pass even if a loading screen appears briefly under actual network delay, which weakens the regression coverage this test is meant to provide; synchronize on a deterministic "request is pending" signal before checking doesNotExist.

Useful? React with 👍 / 👎.

@github-actions
Copy link

Preview deployments

@github-actions
Copy link

Host Test Results

    1 files  ±0      1 suites  ±0   2h 9m 5s ⏱️ -15s
2 056 tests ±0  2 041 ✅ ±0  15 💤 ±0  0 ❌ ±0 
2 071 runs  ±0  2 056 ✅ ±0  15 💤 ±0  0 ❌ ±0 

Results for commit 0a02377. ± Comparison against base commit a059fc7.

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