2022-05-11 04:28:48 +00:00
|
|
|
import { expect } from "@playwright/test";
|
|
|
|
|
2022-04-14 04:00:38 +00:00
|
|
|
import { test } from "./lib/fixtures";
|
|
|
|
|
2022-05-11 17:12:58 +00:00
|
|
|
test.describe.configure({ mode: "parallel" });
|
|
|
|
|
2022-04-14 04:00:38 +00:00
|
|
|
test.describe("App Store - Authed", () => {
|
2022-09-02 02:00:48 +00:00
|
|
|
test("Browse apple-calendar and try to install", async ({ page, users }) => {
|
|
|
|
const pro = await users.create();
|
|
|
|
await pro.login();
|
2022-09-15 11:52:52 +00:00
|
|
|
await page.goto("/apps/categories/calendar");
|
2022-05-11 04:28:48 +00:00
|
|
|
await page.click('[data-testid="app-store-app-card-apple-calendar"]');
|
2022-04-14 04:00:38 +00:00
|
|
|
await page.click('[data-testid="install-app-button"]');
|
2022-05-11 04:28:48 +00:00
|
|
|
await expect(page.locator(`text=Connect to Apple Server`)).toBeVisible();
|
2022-09-02 02:00:48 +00:00
|
|
|
await pro.delete();
|
2022-04-14 04:00:38 +00:00
|
|
|
});
|
2023-01-08 08:29:20 +00:00
|
|
|
|
|
|
|
test("Installed Apps - Navigation", async ({ page, users }) => {
|
|
|
|
const user = await users.create();
|
|
|
|
await user.login();
|
|
|
|
await page.goto("/apps/installed");
|
|
|
|
await page.waitForSelector('[data-testid="connect-calendar-apps"]');
|
|
|
|
await page.click('[data-testid="vertical-tab-payment"]');
|
|
|
|
await page.waitForSelector('[data-testid="connect-payment-apps"]');
|
|
|
|
await page.click('[data-testid="vertical-tab-automation"]');
|
|
|
|
await page.waitForSelector('[data-testid="connect-automation-apps"]');
|
|
|
|
});
|
2022-04-14 04:00:38 +00:00
|
|
|
});
|
|
|
|
|
|
|
|
test.describe("App Store - Unauthed", () => {
|
|
|
|
test("Browse apple-calendar and try to install", async ({ page }) => {
|
2022-09-15 11:52:52 +00:00
|
|
|
await page.goto("/apps/categories/calendar");
|
2022-04-14 04:00:38 +00:00
|
|
|
await page.click('[data-testid="app-store-app-card-apple-calendar"]');
|
2022-05-11 03:37:09 +00:00
|
|
|
await page.click('[data-testid="install-app-button"]');
|
2022-05-11 04:28:48 +00:00
|
|
|
await expect(page.locator(`[data-testid="login-form"]`)).toBeVisible();
|
2022-04-14 04:00:38 +00:00
|
|
|
});
|
|
|
|
});
|