github.com/minio/console@v1.4.1/web-app/e2e/login.spec.ts (about) 1 import { test, expect } from "@playwright/test"; 2 import { adminAccessKey, adminSecretKey, BUCKET_LIST_PAGE } from "./consts"; 3 4 test("Basic `minioadmin` Login", async ({ page, context }) => { 5 await page.goto(BUCKET_LIST_PAGE); 6 await page.getByPlaceholder("Username").click(); 7 await page.getByPlaceholder("Username").fill(adminAccessKey); 8 await page.getByPlaceholder("Password").click(); 9 await page.getByPlaceholder("Password").fill(adminSecretKey); 10 await page.getByRole("button", { name: "Login" }).click(); 11 await context.storageState({ path: "storage/minioadmin.json" }); 12 await expect(page.getByRole("main").getByText("Object Browser")).toBeTruthy(); 13 });