When players use mobile devices in portrait orientation, they can have difficulty seeing the point card underneath
Detailed Description
See image below:
The point card beneath the jacks is covered up by the jacks. This makes it difficult to assess the board state, and worse makes it so that you can't click the point card to target it.
Current Behavior
The point card is covered by the jacks.
Expected Behavior
The point card and the jacks are both visible
Steps to Reproduce
With the tests:
Relevant spec: it('Player and Opponent plays Jacks on different cards') in tests/e2e/specs/in-game/basicMoves.spec.js
Boot the client and server with npm run start:dev
Add a call to cy.viewport('iphone-8') to the describe() block above the test, before cy.setupGameAsP0().
Add a .only() to the spec so it reads it.only('Player and Opponent plays Jacks on different cards')
Run the spec in gui mode by booting cypress in another shell with npm run e2e:gui and clicking the basicMoves.spec.js file
You'll see the game play out and jacks appear on both sides of the field. Use this test to ensure the point cards are still visible.
Manual testing
We highly encourage contributors to use the tests to rapidly iterate as it cuts down time refreshing the page and re-creating a given scenario in-game, but you can manually replicate the issue by:
Signing in as two separate accounts in two separate browsers
Shrinking one of the browser windows to a portrait mobile size
Starting a game
Playing points as one player, then playing a jack on those points as the other
Bug Summary
When players use mobile devices in portrait orientation, they can have difficulty seeing the point card underneath
Detailed Description
See image below:
The point card beneath the jacks is covered up by the jacks. This makes it difficult to assess the board state, and worse makes it so that you can't click the point card to target it.
Current Behavior
The point card is covered by the jacks.
Expected Behavior
The point card and the jacks are both visible
Steps to Reproduce
With the tests: Relevant spec:
it('Player and Opponent plays Jacks on different cards')
intests/e2e/specs/in-game/basicMoves.spec.js
npm run start:dev
cy.viewport('iphone-8')
to thedescribe()
block above the test, beforecy.setupGameAsP0()
..only()
to the spec so it readsit.only('Player and Opponent plays Jacks on different cards')
npm run e2e:gui
and clicking thebasicMoves.spec.js
fileYou'll see the game play out and jacks appear on both sides of the field. Use this test to ensure the point cards are still visible.
Manual testing We highly encourage contributors to use the tests to rapidly iterate as it cuts down time refreshing the page and re-creating a given scenario in-game, but you can manually replicate the issue by: