You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jena.apache.org by an...@apache.org on 2023/01/07 14:48:57 UTC
[jena] branch main updated: GH-1693: resizeable query editor
This is an automated email from the ASF dual-hosted git repository.
andy pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/jena.git
The following commit(s) were added to refs/heads/main by this push:
new f504a9885f GH-1693: resizeable query editor
new e305c97b86 Merge pull request #1684 from AKSW/resizeable
f504a9885f is described below
commit f504a9885fa394b26ae8ecbb7747bb9c13b148fa
Author: Simon Bin <sb...@informatik.uni-leipzig.de>
AuthorDate: Fri Dec 16 16:15:06 2022 +0100
GH-1693: resizeable query editor
---
.../jena-fuseki-ui/src/views/dataset/Query.vue | 2 +-
.../jena-fuseki-ui/tests/e2e/specs/query.cy.js | 27 ++++++++++++++++++++++
2 files changed, 28 insertions(+), 1 deletion(-)
diff --git a/jena-fuseki2/jena-fuseki-ui/src/views/dataset/Query.vue b/jena-fuseki2/jena-fuseki-ui/src/views/dataset/Query.vue
index f007362f89..8a0c2b0e01 100644
--- a/jena-fuseki2/jena-fuseki-ui/src/views/dataset/Query.vue
+++ b/jena-fuseki2/jena-fuseki-ui/src/views/dataset/Query.vue
@@ -289,7 +289,7 @@ export default {
document.getElementById('yasqe'),
{
showQueryButton: true,
- resizeable: false,
+ resizeable: true,
requestConfig: {
endpoint: this.$fusekiService.getFusekiUrl(this.currentDatasetUrl)
},
diff --git a/jena-fuseki2/jena-fuseki-ui/tests/e2e/specs/query.cy.js b/jena-fuseki2/jena-fuseki-ui/tests/e2e/specs/query.cy.js
index 0e90435a0c..f8a55e4518 100644
--- a/jena-fuseki2/jena-fuseki-ui/tests/e2e/specs/query.cy.js
+++ b/jena-fuseki2/jena-fuseki-ui/tests/e2e/specs/query.cy.js
@@ -76,4 +76,31 @@ describe('Query', () => {
.its('response')
.should('have.property', 'statusCode', 203)
})
+ it('Can resize the query editor', () => {
+ cy.visit('/#/dataset/skosmos/query')
+ cy
+ .get('div.CodeMirror')
+ .should('be.visible')
+ .invoke('css', 'height')
+ .as('beforeHeight')
+ cy
+ .get('div.resizeChip')
+ .should('exist')
+ .trigger('mousedown', {
+ which: 1, force: true
+ })
+ .trigger('mousemove', { which: 1, force: true, x: 0, y: 50 })
+ .trigger('mouseup', {
+ force: true
+ });
+ cy
+ .get('div.CodeMirror')
+ .invoke('css', 'height')
+ .as('afterHeight')
+ cy.get('@beforeHeight').then(beforeHeight => {
+ cy.get('@afterHeight').then(afterHeight => {
+ expect(afterHeight).to.not.equal(beforeHeight)
+ })
+ })
+ })
})