Skip to content

Fix responsiveness on smaller/mobile screens#8

Merged
mbijon merged 4 commits intomainfrom
codex/responsive
Sep 23, 2025
Merged

Fix responsiveness on smaller/mobile screens#8
mbijon merged 4 commits intomainfrom
codex/responsive

Conversation

@mbijon
Copy link
Owner

@mbijon mbijon commented Sep 23, 2025

No description provided.

@vercel
Copy link

vercel bot commented Sep 23, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
heatseeker Ready Ready Preview Comment Sep 23, 2025 0:39am

@mbijon mbijon merged commit b033be2 into main Sep 23, 2025
4 checks passed
@mbijon mbijon deleted the codex/responsive branch September 23, 2025 00:43
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 suggestions.

Reply with @codex fix comments to fix any unresolved comments.

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, or 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 fix this CI failure" or "@codex address that feedback".

Comment on lines +24 to +28
// Perform rapid button clicks
for (let i = 0; i < 10; i++) {
await page.getByRole('button', { name: '→' }).click();
await page.getByRole('button', { name: '↑' }).click();
}

Choose a reason for hiding this comment

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

[P1] Stop rapid-click loop before the grid edges are reached

The rapid interaction test clicks the right and up buttons ten times on the initial 10×10 board. After nine iterations the player reaches the top‑right corner, the game transitions to the win state, and the directional buttons are removed. The tenth iteration therefore waits forever for buttons that no longer exist and the test will fail. Limit the loop to the board size minus one or assert on the win state instead of forcing additional moves.

Useful? React with 👍 / 👎.

Comment on lines +45 to +49
// Rapid keyboard inputs
for (let i = 0; i < 15; i++) {
await page.keyboard.press('ArrowRight');
await page.keyboard.press('ArrowUp');
}

Choose a reason for hiding this comment

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

[P1] Keyboard performance test assumes impossible 30 moves

This test presses ArrowRight/ArrowUp 15 times and then expects Level Moves: 30. On the 10×10 starting grid there are only nine valid moves in each direction before hitting the boundary, after which additional key presses do nothing. As a result the assertion for 30 moves can never be satisfied and the test will always fail. The loop should stop once the player reaches the target or calculate the expected count based on grid size.

Useful? React with 👍 / 👎.

Comment on lines +14 to +17
// Check subheading
const subHeading = page.getByRole('heading', { level: 2 });
await expect(subHeading).toBeVisible();
await expect(subHeading).toHaveText('Game Rules:');

Choose a reason for hiding this comment

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

[P1] Accessibility test looks for a heading that the UI never renders

The accessibility suite asserts that an <h2> contains the text Game Rules:. The start screen’s subheading is currently Don't step in lava!, so the locator will never resolve and the test fails immediately. Either update the test to match the actual heading or render the expected text in the UI.

Useful? React with 👍 / 👎.

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