-
Notifications
You must be signed in to change notification settings - Fork 0
37 test sprint 1 code #45
Merged
+108
−13
Merged
Changes from 5 commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
a3d2d03
test(#37): :test_tube: Write test for sprint 1 code
kleinc 51c0185
Merge branch 'dev' of git.ntnu.no:TDT4290-group-4/MolloyExplorer into…
kleinc dc9f0a6
test(#37): :test_tube: Make test for sprint 1 code
kleinc b5a3798
docs(#37): :memo: Update readme to explain how to run cypress tests
kleinc fb1333e
refactor(#37): :recycle: run prettier
kleinc 38c08d3
refactor(#37): :recycle: add verifications for tests
kleinc 1bb2606
refactor(#37): add git ignore for cypress screenshots and add test sp…
kleinc 7a197e4
refactor(#37): :recycle: move test specification from package-lock.sj…
kleinc 8a16a71
refactor(#37): change file name from viewAttribute to measurementTool
kleinc 9311ba8
refactor(#37): :recycle: Add specification to remove warning about tr…
kleinc File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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,25 @@ | ||
| describe('Shaded Lighting', () => { | ||
| it('Toggle the EDL checkbox on and off', () => { | ||
| cy.visit('http://localhost:5173/#') | ||
| cy.get('#chkEDLEnabled').uncheck() | ||
| cy.get('#chkEDLEnabled').check() | ||
| }) | ||
|
|
||
| it('Change radius', function () { | ||
| cy.visit('http://localhost:5173/#') | ||
| cy.get('div.potree_container').click() | ||
| cy.get('#sldEDLRadius span.ui-corner-all').click() | ||
| }) | ||
|
|
||
| it('Change strength', function () { | ||
| cy.visit('http://localhost:5173/#') | ||
| cy.get('#sldEDLStrength span.ui-corner-all').click() | ||
| cy.get('#sldEDLStrength span.ui-corner-all').click() | ||
| }) | ||
|
|
||
| it('Change opacity', function () { | ||
| cy.visit('http://localhost:5173/#') | ||
| cy.get('#sldEDLOpacity span.ui-corner-all').click() | ||
| cy.get('#sldEDLOpacity span.ui-corner-all').click() | ||
| }) | ||
kleinc marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| }) | ||
kleinc marked this conversation as resolved.
Show resolved
Hide resolved
|
This file contains hidden or 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,50 @@ | ||
| describe('View Attribute', () => { | ||
| it('Places the view attribute', () => { | ||
| cy.visit('http://localhost:5173/#') | ||
|
|
||
| cy.get('#tools img[data-i18n="[title]tt.point_measurement"]').click() | ||
| cy.get('#potree_render_area canvas[tabindex="2222"]').click() | ||
| }) | ||
|
|
||
| it('Delete view attribute ', function () { | ||
| cy.visit('http://localhost:5173/#') | ||
|
|
||
| cy.get('#tools img[data-i18n="[title]tt.point_measurement"]').click() | ||
| cy.get('#potree_render_area canvas[tabindex="2222"]').click() | ||
| cy.get('#scene_object_properties [name="remove"]').click() | ||
| cy.get('#tools img[data-i18n="[title]tt.point_measurement"]').click() | ||
| cy.get('#potree_render_area canvas[tabindex="2222"]').click() | ||
| cy.get('#g_point_body button.m-row-delete').click() | ||
| }) | ||
|
|
||
| it('Copy attribute positions ', function () { | ||
| cy.visit('http://localhost:5173/#') | ||
| cy.get('#tools img[data-i18n="[title]tt.point_measurement"]').click() | ||
| cy.get('#potree_render_area canvas[tabindex="2222"]').click() | ||
| cy.get('#scene_object_properties [name="copy"]').click() | ||
| }) | ||
|
|
||
| it('Switch between attributes ', function () { | ||
| cy.visit('http://localhost:5173/#') | ||
| cy.get('#tools img[data-i18n="[title]tt.point_measurement"]').click() | ||
| cy.get('#potree_render_area canvas[tabindex="2222"]').click() | ||
| cy.get('#tools img[data-i18n="[title]tt.point_measurement"]').click() | ||
| cy.get('#potree_render_area canvas[tabindex="2222"]').click() | ||
| cy.get('#tools img[data-i18n="[title]tt.point_measurement"]').click() | ||
| cy.get('#potree_render_area canvas[tabindex="2222"]').click() | ||
| cy.get('#g_point_body span[title="Point #2"]').click() | ||
| cy.get('#g_point_body div:nth-child(1)').click() | ||
| cy.get('#g_point_body span[title="Point #3"]').click() | ||
| }) | ||
|
|
||
| it('Open and close List of Measurements ', function () { | ||
| cy.visit('http://localhost:5173/#') | ||
|
|
||
| cy.get('#tools img[data-i18n="[title]tt.point_measurement"]').click() | ||
| cy.get('#potree_render_area canvas[tabindex="2222"]').click() | ||
| cy.get('#tools img[data-i18n="[title]tt.point_measurement"]').click() | ||
| cy.get('#potree_render_area canvas[tabindex="2222"]').click() | ||
| cy.get('#measurement_items span.m-group-title').click() | ||
| cy.get('#measurement_items span.m-group-title').click() | ||
| }) | ||
| }) |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.