diff --git a/cypress/e2e/shadedLighting.cy.js b/cypress/e2e/shadedLighting.cy.js new file mode 100644 index 0000000..40ead6f --- /dev/null +++ b/cypress/e2e/shadedLighting.cy.js @@ -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() + }) +}) diff --git a/cypress/e2e/viewAttribute.cy.js b/cypress/e2e/viewAttribute.cy.js new file mode 100644 index 0000000..3edae8b --- /dev/null +++ b/cypress/e2e/viewAttribute.cy.js @@ -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() + }) +})