Skip to content

Commit

Permalink
test(#35): 🧪 Change tests to actually look for the globe
Browse files Browse the repository at this point in the history
  • Loading branch information
kleinc committed Oct 20, 2025
1 parent d46c7fe commit 74389ce
Showing 1 changed file with 24 additions and 6 deletions.
30 changes: 24 additions & 6 deletions cypress/e2e/globeRendering.cy.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,29 @@
describe('Globe Rendering and Interaction Test', () => {
it('Check that the globe is rendered correctly', () => {
cy.visit('http://localhost:5173/#')
cy.wait(6000)

cy.window().then((win) => {
const cv = win.cesiumViewer
expect(cv).to.exist
expect(cv.scene.globe.show).to.equal(true)

expect(cv.scene.imageryLayers.length).to.be.at.least(0)
})
})

it('Render the globe and test interactions', () => {
cy.visit('http://localhost:5173/#')


cy.get('#potree_render_area canvas[tabindex="2222"]').click();
cy.get('#potree_render_area canvas[tabindex="2222"]').click();
cy.get('#potree_render_area canvas[tabindex="2222"]').click();
cy.wait(6000)

cy.window({ timeout: 20000 }).its('cesiumViewer').should('exist')
cy.get('#cesiumContainer').should('exist')
})
})

it('Test interactions', () => {
cy.visit('http://localhost:5173/#')
cy.wait(500)
cy.get('#potree_render_area canvas[tabindex="2222"]').click()
cy.get('#potree_render_area canvas[tabindex="2222"]').click()
})
})

0 comments on commit 74389ce

Please sign in to comment.