+
+ Remote Config String: {configValue}
+
+
+
+ Remote Config Boolean: {configValue}
+
+
+
+ Remote Config Number: {configValue}
+
+
+
+ Remote Config Value: {configValue.getSource()}
+
+
\ No newline at end of file
diff --git a/tests/auth.test.ts b/tests/auth.test.ts
index 3f766c2..70ec345 100644
--- a/tests/auth.test.ts
+++ b/tests/auth.test.ts
@@ -16,9 +16,8 @@ test.describe.serial("Auth", () => {
});
test("User can sign in and out", async () => {
-
await expect(page.getByRole("button", { name: "Sign In" })).toBeVisible();
- await page.getByRole("button", { name: "Sign In" }).click({delay: 1000});
+ await page.getByRole("button", { name: "Sign In" }).click({ delay: 1000 });
await expect(page.getByRole("button", { name: "Sign Out" })).toBeVisible();
await page.getByRole("button", { name: "Sign Out" }).click();
diff --git a/tests/remote-config.test.ts b/tests/remote-config.test.ts
new file mode 100644
index 0000000..b72acbb
--- /dev/null
+++ b/tests/remote-config.test.ts
@@ -0,0 +1,21 @@
+import { expect, test, type Page } from "@playwright/test";
+
+test.describe.serial("Remote Config", () => {
+ let page: Page;
+
+ test.beforeAll(async ({ browser }) => {
+ page = await browser.newPage();
+ await page.goto("/remote-config-test");
+ });
+
+ test.afterAll(async () => {
+ await page.close();
+ });
+
+ test("Displays default values", async () => {
+ await expect(page.getByTestId('string-config')).toContainText('Hello World');
+ await expect(page.getByTestId('number-config')).toContainText('123.456');
+ await expect(page.getByTestId('value-config')).toContainText('default');
+ await expect(page.getByTestId('boolean-config')).toContainText('true');
+ });
+});
diff --git a/tests/storage.test.ts b/tests/storage.test.ts
index 4e5e523..36792fa 100644
--- a/tests/storage.test.ts
+++ b/tests/storage.test.ts
@@ -1,16 +1,27 @@
-import { expect, test } from '@playwright/test';
+import { expect, test, type Page } from "@playwright/test";
+test.describe.serial("Storage", () => {
+ let page: Page;
+ test.beforeAll(async ({ browser }) => {
+ page = await browser.newPage();
+ await page.goto("/storage-test");
+ });
-test('Renders download links', async ({ page }) => {
- await page.goto('/storage-test');
- await page.waitForSelector('[data-testid="download-link"]');
- const linksCount = await page.getByTestId('download-link').count()
- expect( linksCount ).toBeGreaterThan(0);
-});
+ test.afterAll(async () => {
+ await page.close();
+ });
+
+ test("Renders download links", async () => {
+ await page.waitForSelector('[data-testid="download-link"]');
+ const linksCount = await page.getByTestId("download-link").count();
+ expect(linksCount).toBeGreaterThan(0);
+ });
-test('Uploads a file', async ({ page }) => {
- await page.goto('/storage-test');
- await page.getByRole('button', { name: 'Make File' }).click();
- await expect(page.getByTestId('progress')).toContainText('100% uploaded');
- await expect(page.getByTestId('download-link2')).toContainText('test-upload.txt');
-});
\ No newline at end of file
+ test("Uploads a file", async () => {
+ await page.getByRole("button", { name: "Make File" }).click();
+ await expect(page.getByTestId("progress")).toContainText("100% uploaded");
+ await expect(page.getByTestId("download-link2")).toContainText(
+ "test-upload.txt"
+ );
+ });
+});