Skip to content

Commit

Permalink
Merge pull request #36 from TDT4290-group-4/35-change-to-offline-rend…
Browse files Browse the repository at this point in the history
…ering

feat(#35): ✨ Change to offline rendering
  • Loading branch information
kleinc authored Oct 20, 2025
2 parents 4af9107 + 74389ce commit 3f46613
Show file tree
Hide file tree
Showing 6 changed files with 80,556 additions and 6 deletions.
29 changes: 29 additions & 0 deletions cypress/e2e/globeRendering.cy.js
Original file line number Diff line number Diff line change
@@ -0,0 +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.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()
})
})
Loading

0 comments on commit 3f46613

Please sign in to comment.