Skip to content

Commit

Permalink
Added tooltip to run query button.
Browse files Browse the repository at this point in the history
  • Loading branch information
boyan-tonchev committed Feb 15, 2023
1 parent ccace10 commit 6917f50
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions cypress/e2e/editor-actions/execute-query.spec.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ describe('Execute query action', () => {

it('Should be able to execute a query', () => {
ActionsPageSteps.visit();
YasqeSteps.getExecuteQueryButtonTooltip().should('have.attr', 'data-tooltip', 'Run query');
YasqeSteps.getExecuteQueryButton().should('be.visible');
YasqeSteps.executeQuery();
YasrSteps.getResults().should('have.length', 36);
Expand Down
4 changes: 4 additions & 0 deletions cypress/steps/yasqe-steps.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,10 @@ export class YasqeSteps {
return cy.get('.yasqe_queryButton');
}

static getExecuteQueryButtonTooltip() {
return this.getExecuteQueryButton().parent();
}

static executeQuery(index = 0) {
this.getExecuteQueryButton().eq(index).click();
}
Expand Down
1 change: 1 addition & 0 deletions ontotext-yasgui-web-component/src/i18n/locale-en.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
"yasqe.action.curl.btn.label": "CURL",
"yasqe.action.run_query.btn.label": "Run",
"yasqe.action.run_query.btn.tooltip": "Run query",
"yasqe.action.run_query.btn.disabled.tooltip": "Querying is disabled.",
"yasqe.action.share.btn.tooltip": "Share your query",
"yasqe.action.share.error.general_message": "An error has occurred",
"yasqe.action.shorten.btn.label": "Shorten",
Expand Down
1 change: 1 addition & 0 deletions ontotext-yasgui-web-component/src/i18n/locale-fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
"yasqe.action.curl.btn.label": "CURL",
"yasqe.action.run_query.btn.label": "Exécuter",
"yasqe.action.run_query.btn.tooltip": "Run query",
"yasqe.action.run_query.btn.disabled.tooltip": "Querying is disabled.",
"yasqe.action.share.btn.tooltip": "Partagez votre requête",
"yasqe.action.share.error.general_message": "An error has occurred",
"yasqe.action.shorten.btn.label": "Raccourcir",
Expand Down

0 comments on commit 6917f50

Please sign in to comment.