Skip to content

Commit

Permalink
Fix cypress
Browse files Browse the repository at this point in the history
  • Loading branch information
Torgen authored and on3iro committed Jan 1, 2025
1 parent c5e7207 commit fc8fafb
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 12 deletions.
20 changes: 12 additions & 8 deletions cypress/e2e/Expeditions/creationAndRunThrough.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ describe('Expedition creation and run through', () => {
.contains('Reflective Conduit')
.click()
.get('p')
.contains('Combustion')
.contains('Psychic Eruption')
.click()
.get('[data-test="btn-continue"]')
.click()
Expand All @@ -74,7 +74,7 @@ describe('Expedition creation and run through', () => {
cy.get('[data-test="btn-battle-won"]').click()
cy.get('p').contains('Energized Rubidium').click()
cy.get('p').contains('Primordial Fetish').click()
cy.get('p').contains('Catalyst').click()
cy.get('p').contains('Char').click()
cy.get('[data-test="btn-continue"]').click()
})

Expand All @@ -85,7 +85,7 @@ describe('Expedition creation and run through', () => {
cy.get('[data-test="btn-battle-won"]').click()
cy.get('p').contains('Searing Ruby').click()
cy.get('p').contains('Scholars Opus').click()
cy.get('p').contains('Reduce To Ash').click()
cy.get('p').contains('Carbonize').click()
cy.get('[data-test="btn-continue"]').click()
})

Expand Down Expand Up @@ -130,11 +130,12 @@ describe('Expedition creation and run through', () => {
cy.get('p').contains('Oblivium Resin').should('be.visible')
cy.get('p').contains('Transmogrifier').should('be.visible')
cy.get('p').contains('Breach Extractor').should('be.visible')
cy.get('p').contains('Feral Lightning').scrollIntoView()
cy.get('p').contains('Feral Lightning').should('be.visible')
cy.get('p').contains('Wildfire Whip').scrollIntoView()
cy.get('p').contains('Wildfire Whip').should('be.visible')
cy.get('p').contains('Amplify Vision').scrollIntoView()
cy.get('p').contains('Amplify Vision').should('be.visible')
cy.get('p').contains('Celestial Spire').should('be.visible')
cy.get('p').contains('Pyromancy').should('be.visible')
cy.get('p').contains('Scrying Bolt').should('be.visible')

// Treasures
cy.get('[data-test="treasure"]').click({ force: true })
Expand Down Expand Up @@ -182,13 +183,16 @@ describe('Expedition creation and run through', () => {
cy.get('p').contains('Vriswood Amber').should('be.visible')
cy.get('p').contains('Dread Diamond').should('be.visible')
cy.get('p').contains('Reflective Conduit').should('be.visible')
cy.get('p').contains('Combustion').scrollIntoView().should('be.visible')
cy.get('p')
.contains('Psychic Eruption')
.scrollIntoView()
.should('be.visible')
cy.get('p').contains('Energized Rubidium').should('be.visible')
cy.get('p')
.contains('Primordial Fetish')
.scrollIntoView()
.should('be.visible')
cy.get('p').contains('Catalyst').should('be.visible')
cy.get('p').contains('Char').should('be.visible')
cy.get('p').contains('Searing Ruby').should('be.visible')
cy.get('p').contains('Scholars Opus').should('be.visible')
})
Expand Down
8 changes: 4 additions & 4 deletions cypress/e2e/Expeditions/seeds.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ describe('seeds', () => {
cy.get('[data-test="btn-battle-won"]').click()
cy.get('p').contains('Dread Diamond').click()
cy.get('p').contains('Reflective Conduit').click()
cy.get('p').contains('Combustion').click()
cy.get('p').contains('Psychic Eruption').click()
cy.get('[data-test="btn-continue"]').click()

cy.get('[data-test=btn-battle]').eq(1).click()
Expand Down Expand Up @@ -83,7 +83,7 @@ describe('seeds', () => {
cy.get('[data-test="btn-battle-won"]').click()
cy.get('p').contains('Dread Diamond').click()
cy.get('p').contains('Reflective Conduit').click()
cy.get('p').contains('Combustion').click()
cy.get('p').contains('Psychic Eruption').click()
cy.get('[data-test="btn-continue"]').click()

cy.get('[data-test=btn-battle]').eq(1).click()
Expand Down Expand Up @@ -116,7 +116,7 @@ describe('seeds', () => {
cy.get('[data-test="btn-battle-won"]').click()
cy.get('p').contains('Summonite').click()
cy.get('p').contains('Conclave Scroll').click()
cy.get('p').contains('Storm Vapor').click()
cy.get('p').contains('Embody Flame').click()

cy.get('[data-test="btn-continue"]').click()

Expand Down Expand Up @@ -151,7 +151,7 @@ describe('seeds', () => {
cy.get('[data-test="btn-battle-won"]').click()
cy.get('p').contains('Voidium Spike').click()
cy.get('p').contains('Caged Fire').scrollIntoView().click()
cy.get('p').contains('Convection Field').click()
cy.get('p').contains('Jagged Lightning').click()

cy.get('[data-test="btn-continue"]').click()

Expand Down

0 comments on commit fc8fafb

Please sign in to comment.