Skip to content

Commit

Permalink
Update E2E Main workflow (#77)
Browse files Browse the repository at this point in the history
* Update E2E Main workflow

* Update package.json

* Fix tests

* Update panel.spec.ts

* Update CHANGELOG.md
  • Loading branch information
mikhail-vl authored Jun 25, 2024
1 parent d5a9299 commit e1e0306
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 13 deletions.
4 changes: 2 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# Changelog

## 4.1.0 (2024-06-24)
## 4.1.0 (2024-06-25)

### Features / Enhancements

- Added supporting OpenAI completions (#73)
- Update E2E workflow to use Docker (#75)
- Update E2E workflow to use Docker (#75, #77)
- Update plugin logo (#76)

## 4.0.0 (2024-06-12)
Expand Down
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ services:
environment:
- GF_DEFAULT_APP_MODE=development
- GF_USERS_DEFAULT_THEME=light
- GF_INSTALL_PLUGINS=volkovlabs-image-panel,marcusolsson-dynamictext-panel
- GF_INSTALL_PLUGINS=volkovlabs-image-panel,marcusolsson-dynamictext-panel,grafana-llm-app
volumes:
- ./dist:/var/lib/grafana/plugins/marcusolsson-static-datasource
- ./provisioning:/etc/grafana/provisioning
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@
"stop:e2e": "docker-compose -f test/docker-compose.yml down",
"test": "jest --watch --onlyChanged",
"test:e2e": "npx playwright test",
"test:e2e:docker": "docker compose --profile e2e up",
"test:e2e:docker": "docker compose --profile e2e up --exit-code-from test",
"test:ci": "jest --maxWorkers 4 --coverage",
"upgrade": "npm upgrade --save"
},
Expand Down
12 changes: 3 additions & 9 deletions test/panel.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,16 +27,10 @@ test.describe('Static Data Source', () => {
/**
* Check content
*/
await expect(dashboardPage.getPanelByTitle('Logs').locator.locator('tr').nth(0)).toHaveText(
'2022-11-01 07:27:25.648user logged in'
);
await expect(dashboardPage.getPanelByTitle('Logs').locator.locator('tr').nth(0)).toContainText('user logged in');

await expect(dashboardPage.getPanelByTitle('Logs').locator.locator('tr').nth(1)).toHaveText(
'2022-11-01 07:27:15.826user login failed'
);
await expect(dashboardPage.getPanelByTitle('Logs').locator.locator('tr').nth(1)).toContainText('user login failed');

await expect(dashboardPage.getPanelByTitle('Logs').locator.locator('tr').nth(2)).toHaveText(
'2022-11-01 07:27:06.074user registered'
);
await expect(dashboardPage.getPanelByTitle('Logs').locator.locator('tr').nth(2)).toContainText('user registered');
});
});

0 comments on commit e1e0306

Please sign in to comment.