E2E Test Rewrite (#300)

* Adds tables test

* Include .env var

* Adds asElement on again

* Add further loading states

* Format

* Hope to not lose focus

* Adds ID to shared key and modifies value of input directly

* Fix tables test

* Format

* Try uploading screenshots

* indent

* Fixes connection string

* Try wildcard upload path

* Rebuilds test structure, assertions, dependencies

* Wait longer for container create

* format
This commit is contained in:
Zachary Foster
2020-11-02 14:33:14 -05:00
committed by GitHub
parent 5741802c25
commit 473f722dcc
7 changed files with 388 additions and 103 deletions

View File

@@ -3,7 +3,7 @@ import { Frame } from "puppeteer";
export async function login(connectionString: string): Promise<Frame> {
const prodUrl = "https://localhost:1234/hostedExplorer.html";
page.goto(prodUrl);
page.goto(prodUrl, { waitUntil: "networkidle2" });
// log in with connection string
const handle = await page.waitForSelector("iframe");
@@ -16,6 +16,6 @@ export async function login(connectionString: string): Promise<Frame> {
return frame;
}
export function generateUniqueName(baseName: string, length = 8): string {
export function generateUniqueName(baseName = "", length = 4): string {
return `${baseName}${crypto.randomBytes(length).toString("hex")}`;
}