From 66b41076d634ef9c869f7d57f45074b1ece69f43 Mon Sep 17 00:00:00 2001 From: Haohan Yang Date: Fri, 13 Dec 2024 22:44:07 +0000 Subject: [PATCH] Change test ts files to js --- tests/{configEditor.spec.ts => configEditor.spec.js} | 5 ++--- tests/{queryEditor.spec.ts => queryEditor.spec.js} | 0 2 files changed, 2 insertions(+), 3 deletions(-) rename tests/{configEditor.spec.ts => configEditor.spec.js} (80%) rename tests/{queryEditor.spec.ts => queryEditor.spec.js} (100%) diff --git a/tests/configEditor.spec.ts b/tests/configEditor.spec.js similarity index 80% rename from tests/configEditor.spec.ts rename to tests/configEditor.spec.js index fcede3a..4e0446f 100644 --- a/tests/configEditor.spec.ts +++ b/tests/configEditor.spec.js @@ -1,12 +1,11 @@ import { test, expect } from "@grafana/plugin-e2e"; -import { MongoDataSourceOptions, MySecureJsonData } from "../src/types"; test("\"Save & test\" should be successful when mongo without auth config is valid", async ({ createDataSourceConfigPage, readProvisionedDataSource, page, }) => { - const ds = await readProvisionedDataSource({ fileName: "test/mongo-no-auth.yml" }); + const ds = await readProvisionedDataSource({ fileName: "test/mongo-no-auth.yml" }); const configPage = await createDataSourceConfigPage({ type: ds.type }); await page.getByLabel("Host").fill(ds.jsonData.host || ""); await page.getByLabel("Port").fill(ds.jsonData.port?.toString() || ""); @@ -20,7 +19,7 @@ test("\"Save & test\" should be successful when mongo username-password auth con readProvisionedDataSource, page, }) => { - const ds = await readProvisionedDataSource({ fileName: "test/mongo-username-password-auth.yml" }); + const ds = await readProvisionedDataSource({ fileName: "test/mongo-username-password-auth.yml" }); const configPage = await createDataSourceConfigPage({ type: ds.type }); await page.getByLabel("Host").fill(ds.jsonData.host || ""); await page.getByLabel("Port").fill(ds.jsonData.port?.toString() || ""); diff --git a/tests/queryEditor.spec.ts b/tests/queryEditor.spec.js similarity index 100% rename from tests/queryEditor.spec.ts rename to tests/queryEditor.spec.js