-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'dev' of git.ntnu.no:TDT4290-group-4/MolloyExplorer into…
… 37-test-sprint-1-code
- Loading branch information
Showing
20 changed files
with
83,697 additions
and
1,035 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,24 @@ | ||
| /**Testing whether the Accepted components excists or not */ | ||
| describe('Accepted filtering', () => { | ||
| it('test accepted filter button', function () { | ||
| cy.visit('http://localhost:5173/#') | ||
| cy.get('#doAcceptedFilter').click() | ||
| }) | ||
| }) | ||
|
|
||
| /**Testing whether the Elevation components excists or not */ | ||
| describe('Elevation Control', () => { | ||
| it('test elevation control', function () { | ||
| cy.visit('http://localhost:5173/#') | ||
| cy.get('#btnDoElevationControl').click() | ||
|
|
||
| cy.get( | ||
| '#elevation_gradient_scheme_selection span:nth-child(8) rect' | ||
| ).click() | ||
| cy.get( | ||
| '#elevation_gradient_scheme_selection span:nth-child(3) rect' | ||
| ).click() | ||
|
|
||
| cy.get('#sldHeightRange').click() | ||
| }) | ||
| }) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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() | ||
| }) | ||
| }) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.