Skip to content
This repository was archived by the owner on Sep 29, 2025. It is now read-only.

Commit e1e0306

Browse files
authored
Update E2E Main workflow (#77)
* Update E2E Main workflow * Update package.json * Fix tests * Update panel.spec.ts * Update CHANGELOG.md
1 parent d5a9299 commit e1e0306

File tree

4 files changed

+7
-13
lines changed

4 files changed

+7
-13
lines changed

CHANGELOG.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
# Changelog
22

3-
## 4.1.0 (2024-06-24)
3+
## 4.1.0 (2024-06-25)
44

55
### Features / Enhancements
66

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

1111
## 4.0.0 (2024-06-12)

docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ services:
2323
environment:
2424
- GF_DEFAULT_APP_MODE=development
2525
- GF_USERS_DEFAULT_THEME=light
26-
- GF_INSTALL_PLUGINS=volkovlabs-image-panel,marcusolsson-dynamictext-panel
26+
- GF_INSTALL_PLUGINS=volkovlabs-image-panel,marcusolsson-dynamictext-panel,grafana-llm-app
2727
volumes:
2828
- ./dist:/var/lib/grafana/plugins/marcusolsson-static-datasource
2929
- ./provisioning:/etc/grafana/provisioning

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@
7575
"stop:e2e": "docker-compose -f test/docker-compose.yml down",
7676
"test": "jest --watch --onlyChanged",
7777
"test:e2e": "npx playwright test",
78-
"test:e2e:docker": "docker compose --profile e2e up",
78+
"test:e2e:docker": "docker compose --profile e2e up --exit-code-from test",
7979
"test:ci": "jest --maxWorkers 4 --coverage",
8080
"upgrade": "npm upgrade --save"
8181
},

test/panel.spec.ts

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -27,16 +27,10 @@ test.describe('Static Data Source', () => {
2727
/**
2828
* Check content
2929
*/
30-
await expect(dashboardPage.getPanelByTitle('Logs').locator.locator('tr').nth(0)).toHaveText(
31-
'2022-11-01 07:27:25.648user logged in'
32-
);
30+
await expect(dashboardPage.getPanelByTitle('Logs').locator.locator('tr').nth(0)).toContainText('user logged in');
3331

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

38-
await expect(dashboardPage.getPanelByTitle('Logs').locator.locator('tr').nth(2)).toHaveText(
39-
'2022-11-01 07:27:06.074user registered'
40-
);
34+
await expect(dashboardPage.getPanelByTitle('Logs').locator.locator('tr').nth(2)).toContainText('user registered');
4135
});
4236
});

0 commit comments

Comments
 (0)