initial commit for notbooks pupeteer tests

This commit is contained in:
Srinath Narayanan
2020-11-11 04:53:04 -08:00
parent e2e58f73b1
commit 9f4fda13e7
12 changed files with 921 additions and 22 deletions

View File

@@ -1724,6 +1724,8 @@ export default class Explorer {
case MessageTypes.SendNotification:
case MessageTypes.ClearNotification:
case MessageTypes.LoadingStatus:
case MessageTypes.InitTestExplorer:
case MessageTypes.HideConnectScreen:
return true;
}
}
@@ -1742,6 +1744,10 @@ export default class Explorer {
return;
}
if (event.data.data.type === MessageTypes.HideConnectScreen) {
this.hideConnectExplorerForm();
}
const message: any = event.data.data;
const inputs: ViewModels.DataExplorerInputsFrame = message.inputs;
@@ -2537,6 +2543,7 @@ export default class Explorer {
const databaseAccountLocation = databaseAccount && databaseAccount.location.toLowerCase();
const disallowedLocationsUri = `${configContext.BACKEND_ENDPOINT}/api/disallowedLocations`;
const authorizationHeader = getAuthorizationHeader();
console.log("auth header:" + JSON.stringify(authorizationHeader));
try {
const response = await fetch(disallowedLocationsUri, {
method: "POST",