Fix e2e tests (#2648)
This commit is contained in:
parent
c73d0f385a
commit
3caa569f10
2 changed files with 16 additions and 19 deletions
2
.github/workflows/linting-and-tests.yml
vendored
2
.github/workflows/linting-and-tests.yml
vendored
|
|
@ -401,7 +401,7 @@ jobs:
|
|||
helm install helm-testing \
|
||||
--values ./helm/simple.yml \
|
||||
--values ./helm/values-local-image.yml \
|
||||
--set-json 'env=[{"name":"GRAFANA_CLOUD_NOTIFICATIONS_ENABLED","value":"False"}]' \
|
||||
--set-json 'env=[{"name":"GRAFANA_CLOUD_NOTIFICATIONS_ENABLED","value":"False"},{"name":"BASE_URL","value":"http://172.17.0.1:30001"}]' \
|
||||
--set engine.replicaCount=3 \
|
||||
--set celery.replicaCount=3 \
|
||||
--set celery.worker_beat_enabled="False" \
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@ test.describe("updating an integration's heartbeat interval works", async () =>
|
|||
await page.getByTestId('integration-heartbeat-settings').click();
|
||||
};
|
||||
|
||||
test('"change heartbeat interval', async ({ adminRolePage: { page } }) => {
|
||||
test('change heartbeat interval', async ({ adminRolePage: { page } }) => {
|
||||
const integrationName = generateRandomValue();
|
||||
await createIntegration(page, integrationName);
|
||||
|
||||
|
|
@ -49,26 +49,23 @@ test.describe("updating an integration's heartbeat interval works", async () =>
|
|||
expect(heartbeatIntervalValue).toEqual(value);
|
||||
});
|
||||
|
||||
// TODO: Uncomment once https://github.com/grafana/oncall/pull/2648 ready
|
||||
// test('"send heartbeat', async ({ adminRolePage: { page } }) => {
|
||||
// const integrationName = generateRandomValue();
|
||||
// await createIntegration(page, integrationName);
|
||||
test('send heartbeat', async ({ request, adminRolePage: { page } }) => {
|
||||
const integrationName = generateRandomValue();
|
||||
await createIntegration(page, integrationName);
|
||||
|
||||
// await _openHeartbeatSettingsForm(page);
|
||||
await _openHeartbeatSettingsForm(page);
|
||||
|
||||
// const heartbeatSettingsForm = page.getByTestId('heartbeat-settings-form');
|
||||
const heartbeatSettingsForm = page.getByTestId('heartbeat-settings-form');
|
||||
|
||||
// const endpoint = await heartbeatSettingsForm
|
||||
// .getByTestId('input-wrapper')
|
||||
// .locator('input[class*="input-input"]')
|
||||
// .inputValue();
|
||||
const endpoint = await heartbeatSettingsForm
|
||||
.getByTestId('input-wrapper')
|
||||
.locator('input[class*="input-input"]')
|
||||
.inputValue();
|
||||
|
||||
// await page.goto(endpoint);
|
||||
await request.get(endpoint);
|
||||
await page.reload({ waitUntil: 'networkidle' });
|
||||
|
||||
// await page.goBack();
|
||||
|
||||
// const heartbeatBadge = await page.getByTestId('heartbeat-badge');
|
||||
|
||||
// await expect(heartbeatBadge).toHaveClass(/--success/);
|
||||
// });
|
||||
// If heartbeat was never sent, there will be no badge
|
||||
await page.getByTestId('heartbeat-badge').waitFor({ state: 'visible' });
|
||||
});
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue