Skip to content

Commit

Permalink
Merge pull request #197 from sfeifer/update-ci-tests
Browse files Browse the repository at this point in the history
update ci tests for grafana 10.2.5
  • Loading branch information
sfeifer committed Mar 26, 2024
2 parents a3978b6 + 9b2df4d commit 8e7de66
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
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
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
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 8e7de66

Please sign in to comment.