Adds e2e tables test (#276)

* 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
This commit is contained in:
Zachary Foster
2020-10-20 11:49:22 -04:00
committed by GitHub
parent 34d8704071
commit 30353c26f3
7 changed files with 87 additions and 5 deletions

View File

@@ -80,11 +80,13 @@ describe("Collection Add and Delete Cassandra spec", () => {
// click delete
await frame.click('input[data-test="deleteDatabase"]');
await frame.waitForSelector('div[class="splashScreen"] > div[class="title"]', { visible: true });
await frame.waitFor(LOADING_STATE_DELAY);
await frame.waitForSelector('div[class="splashScreen"] > div[class="title"]', { visible: true });
await expect(page).not.toMatchElement(`div[data-test="${keyspaceId}"]`);
} catch (error) {
// eslint-disable-next-line @typescript-eslint/no-explicit-any
const testName = (expect as any).getState().currentTestName;
await page.screenshot({ path: `Test Failed ${testName}.png` });
await page.screenshot({ path: `failed-${testName}.jpg` });
throw error;
}
});