Runner Tweaks (#62)

Co-authored-by: Steve Faulkner <stfaul@microsoft.com>
This commit is contained in:
Steve Faulkner 2020-06-25 18:59:44 -05:00 committed by GitHub
parent 3bf42b23dd
commit e5fc6f2022
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 55 additions and 44 deletions

View File

@ -1,7 +1,7 @@
name: Runners
on:
schedule:
- cron: "*/15 * * * *"
- cron: "*/10 * * * *"
jobs:
sqlcreatecollection:
runs-on: ubuntu-latest

View File

@ -1,10 +1,11 @@
import "expect-puppeteer";
import { trackEvent } from "./utils";
import { trackEvent, trackException } from "./utils";
jest.setTimeout(300000);
describe("Collection CRUD", () => {
it("should complete collection crud", async () => {
try {
// Login to Azure Portal
await page.goto("https://portal.azure.com");
await page.waitFor("input[name=loginfmt]");
@ -48,5 +49,9 @@ describe("Collection CRUD", () => {
// .should("exist")
// .find('div[class="treeComponent dataResourceTree"]')
// .should("contain", dbId);
} catch (error) {
trackException(error);
throw error;
}
});
});

View File

@ -13,3 +13,9 @@ module.exports.trackEvent = (...args) => {
client.trackEvent(...args);
}
};
module.exports.trackException = exception => {
if (client) {
client.trackException({ exception });
}
};