Skip to content

Commit

Permalink
update ci for grafana 10
Browse files Browse the repository at this point in the history
  • Loading branch information
sfeifer committed Mar 26, 2024
1 parent a3978b6 commit 9b2df4d
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ jobs:
strategy:
fail-fast: false
matrix:
grafana_image: ['grafana:latest', 'grafana:9.0.9']
grafana_image: ['grafana:latest', 'grafana:10.2.5', 'grafana:9.0.9']
steps:
- name: Checkout
uses: actions/checkout@v3
Expand Down
11 changes: 10 additions & 1 deletion cypress/e2e/datasources/redis.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,16 @@ describe('PCP Redis data source', () => {

it('should auto-complete metric names', () => {
cy.visit('/dashboard/new');
cy.contains('Add a new panel').click();

//tests for grafana 10 UI
cy.get('body').then(($body) => {
if ($body.text().search('Add a new panel') > 0) {
cy.contains('Add a new panel').click();
} else {
cy.contains('Add visualization').click();
cy.get('div.scrollbar-view').contains('PCP Redis').click();
}
});

// start typing
cy.get('.monaco-editor textarea').type('disk.dev.by', { force: true });
Expand Down
11 changes: 10 additions & 1 deletion cypress/e2e/datasources/vector.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,16 @@ describe('PCP Vector data source', () => {

it('should auto-complete metric names', () => {
cy.visit('/dashboard/new');
cy.contains('Add a new panel').click();

//test for Grafana 10 UI
cy.get('body').then(($body) => {
if ($body.text().search('Add a new panel') > 0) {
cy.contains('Add a new panel').click();
} else {
cy.contains('Add visualization').click();
cy.contains('PCP Vector').click();;
}
});

// start typing
cy.get('.monaco-editor').type('disk.dev.write_b');
Expand Down

0 comments on commit 9b2df4d

Please sign in to comment.