Fetch passwords from secretsmanager (#2138)

* add aws secretsmanagerclient

* create custom globalsetup

* consume secret password and enable tests

* update npm
This commit is contained in:
Severiano Badajoz
2021-04-05 14:16:10 -07:00
committed by GitHub
parent 6ecdfa4940
commit 4510c8c8a4
7 changed files with 1397 additions and 1261 deletions
+3 -6
View File
@@ -16,7 +16,7 @@ import {
goToPage,
} from "./puppeteerUtils";
import { appUrlBase } from "./config";
import { appUrlBase, TEST_EMAIL, TEST_PASSWORD } from "./config";
export async function drag(testId, start, end, lasso = false) {
const layout = await waitByID(testId);
@@ -317,9 +317,6 @@ export async function assertCategoryDoesNotExist(categoryName) {
}
export async function login() {
const email = ``;
const password = "";
await goToPage(appUrlBase);
await clickOn("log-in");
@@ -328,8 +325,8 @@ export async function login() {
await waitUntilFormFieldStable('[name="email"]');
await expect(page).toFillForm("form", {
email,
password,
email: TEST_EMAIL,
password: TEST_PASSWORD,
});
await Promise.all([