-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f463057
commit f678dc0
Showing
5 changed files
with
74 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
name: E2E | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
tests: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Setup Node.js environment | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: '18' | ||
cache: 'npm' | ||
|
||
- name: Install dependencies | ||
run: npm install | ||
|
||
- name: Build | ||
run: npm run build | ||
|
||
- name: Start Grafana | ||
run: docker-compose up -d | ||
|
||
- name: Run e2e tests | ||
run: npm run e2e | ||
|
||
- name: Stop Grafana | ||
run: docker-compose down | ||
|
||
- uses: actions/upload-artifact@v3 | ||
if: failure() | ||
with: | ||
path: | | ||
cypress/videos | ||
cypress/screenshots/actual |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import { e2e } from '@grafana/e2e'; | ||
|
||
/** | ||
* Dashboard | ||
*/ | ||
const json = require('../../provisioning/dashboards/panels.json'); | ||
const testedPanel = json.panels[0]; | ||
|
||
/** | ||
* Panel | ||
*/ | ||
describe('Viewing a panel with a Logs from Static Data', () => { | ||
beforeEach(() => { | ||
e2e.flows.openDashboard({ | ||
uid: json.uid, | ||
}); | ||
}); | ||
|
||
it('Should display a Logs Panel with Static Data', () => { | ||
const currentPanel = e2e.components.Panels.Panel.title(testedPanel.title); | ||
currentPanel.should('be.visible'); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"compilerOptions": { | ||
"types": ["cypress"] | ||
} | ||
} |