Skip to content

Commit

Permalink
test updates
Browse files Browse the repository at this point in the history
  • Loading branch information
andrew-codes committed Feb 5, 2025
1 parent 8ce459a commit 8ee9fc4
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 5 deletions.
4 changes: 2 additions & 2 deletions apps/playnite-web/cypress/e2e/game-details.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@ describe('Game details.', () => {
describe(`Screen size: ${breakpointName}.`, () => {
beforeEach(() => {
cy.viewport(x, y)
cy.visit(locationPath)
cy.wait('@api')
})

it(`Displays game details
- Opens right navigation drawer when a game is clicked
- Game details display the game name and description`, () => {
cy.visit(locationPath)

cy.get('[data-test="GameFigure"] button span')
.first()
.click({ force: true })
Expand Down
9 changes: 6 additions & 3 deletions apps/playnite-web/cypress/e2e/on-deck/index.cy.ts
Original file line number Diff line number Diff line change
@@ -1,19 +1,22 @@
import breakpoints from '../../fixtures/devices.json'

describe('On deck.', () => {
beforeEach(() => {
cy.intercept('POST', '/api').as('api')
})

Cypress._.each(breakpoints, ([breakpointName, x, y]) => {
describe(`Screen size: ${breakpointName}.`, () => {
beforeEach(() => {
cy.viewport(x, y)
cy.visit('/')
cy.wait('@api')
})

it(`Shows the On Deck playlist
- Playlist shows games in a single, horizontally scrolling row.
- Each game shows the game's cover image and name.
- Playing playlist shows games that have the game state: "On Deck".`, () => {
cy.visit('/')
cy.wait(300)

cy.compareSnapshot({
name: `on-deck-playlist_${breakpointName}`,
})
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 8ee9fc4

Please sign in to comment.