Update TypeScript and Prettier

This commit is contained in:
Steve Faulkner
2020-12-09 21:49:36 -06:00
parent 0532ed26a2
commit a2568be0fe
482 changed files with 43811 additions and 43725 deletions

View File

@@ -92,7 +92,7 @@ export const getNotebookNode = async (frame: Frame, uploadNotebookName: string):
const treeNodeHeaders = await notebookResourceTree.$$(".treeNodeHeader");
for (let i = 1; i < treeNodeHeaders.length; i++) {
currentNotebookNode = treeNodeHeaders[i];
const nodeLabel = await currentNotebookNode.$eval(".nodeLabel", element => element.textContent);
const nodeLabel = await currentNotebookNode.$eval(".nodeLabel", (element) => element.textContent);
if (nodeLabel === uploadNotebookName) {
return currentNotebookNode;
}

View File

@@ -58,7 +58,7 @@ const sendMessageToExplorerFrame = (data: unknown): void => {
explorerFrame.contentWindow.postMessage(
{
signature: "pcIframe",
data: data
data: data,
},
explorerFrame.contentDocument.referrer || window.location.href
);
@@ -125,11 +125,11 @@ const initTestExplorer = async (): Promise<void> => {
sharedThroughputDefault: 400,
defaultCollectionThroughput: {
storage: "100",
throughput: { fixed: 400, unlimited: 400, unlimitedmax: 100000, unlimitedmin: 400, shared: 400 }
throughput: { fixed: 400, unlimited: 400, unlimitedmax: 100000, unlimitedmin: 400, shared: 400 },
},
// add UI test only when feature is not dependent on flights anymore
flights: []
} as ViewModels.DataExplorerInputsFrame
flights: [],
} as ViewModels.DataExplorerInputsFrame,
};
window.postMessage(initTestExplorerContent, window.location.href);

View File

@@ -5,5 +5,5 @@ export enum TestExplorerParams {
portalRunnerDatabaseAccount = "portalRunnerDatabaseAccount",
portalRunnerDatabaseAccountKey = "portalRunnerDatabaseAccountKey",
portalRunnerSubscripton = "portalRunnerSubscripton",
portalRunnerResourceGroup = "portalRunnerResourceGroup"
portalRunnerResourceGroup = "portalRunnerResourceGroup",
}

View File

@@ -15,7 +15,7 @@ describe("Notebook UI tests", () => {
uploadedNotebookNode = await uploadNotebookIfNotExist(frame, notebookName);
await uploadedNotebookNode.click();
await frame.waitForSelector(".tabNavText");
const tabTitle = await frame.$eval(".tabNavText", element => element.textContent);
const tabTitle = await frame.$eval(".tabNavText", (element) => element.textContent);
expect(tabTitle).toEqual(notebookName);
const closeIcon = await frame.waitForSelector(".close-Icon");
await closeIcon.click();