Fix eslint warnings (#456)
This commit is contained in:
parent
ee919a68a5
commit
1d2995ef32
|
@ -30,7 +30,7 @@ export function generateDatabaseName(baseName = "db", length = 1): string {
|
||||||
return `${baseName}${crypto.randomBytes(length).toString("hex")}-${Date.now()}`;
|
return `${baseName}${crypto.randomBytes(length).toString("hex")}-${Date.now()}`;
|
||||||
}
|
}
|
||||||
|
|
||||||
export async function createDatabase(frame: Frame) {
|
export async function createDatabase(frame: Frame): Promise<string> {
|
||||||
const dbId = generateDatabaseName();
|
const dbId = generateDatabaseName();
|
||||||
const collectionId = generateUniqueName("col");
|
const collectionId = generateUniqueName("col");
|
||||||
const shardKey = "partitionKey";
|
const shardKey = "partitionKey";
|
||||||
|
@ -70,7 +70,7 @@ export async function createDatabase(frame: Frame) {
|
||||||
return dbId;
|
return dbId;
|
||||||
}
|
}
|
||||||
|
|
||||||
export async function onClickSaveButton(frame: Frame) {
|
export async function onClickSaveButton(frame: Frame): Promise<void> {
|
||||||
await frame.waitFor(`button[data-test="Save"]`), { visible: true };
|
await frame.waitFor(`button[data-test="Save"]`), { visible: true };
|
||||||
await frame.waitFor(LOADING_STATE_DELAY);
|
await frame.waitFor(LOADING_STATE_DELAY);
|
||||||
await frame.click(`button[data-test="Save"]`);
|
await frame.click(`button[data-test="Save"]`);
|
||||||
|
|
Loading…
Reference in New Issue