Skip to content

Commit

Permalink
test(#37): 🧪 Make test for sprint 1 code
Browse files Browse the repository at this point in the history
Make tests for testable interactions in the application for code from sprint 1
  • Loading branch information
kleinc committed Oct 27, 2025
1 parent 51c0185 commit dc9f0a6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
2 changes: 1 addition & 1 deletion cypress/e2e/filtering.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
describe('Accepted filtering', () => {
it('test accepted filter button', function () {
cy.visit('http://localhost:5173/#')
cy.get('#doAcceptedFilter').click()
cy.get('#doAcceptedFiltering').click()
})
})

Expand Down
10 changes: 2 additions & 8 deletions cypress/e2e/globeRendering.cy.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
describe('Globe Rendering and Interaction Test', () => {
it('Check that the globe is rendered correctly', () => {
it('Check that the viewer is rendered correctly', () => {
cy.visit('http://localhost:5173/#')
cy.wait(6000)

Expand All @@ -12,18 +12,12 @@ describe('Globe Rendering and Interaction Test', () => {
})
})

it('Render the globe and test interactions', () => {
it('Render the globe and test interactions with the globe', () => {
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()
})
})

0 comments on commit dc9f0a6

Please sign in to comment.