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 name: Runners
on: on:
schedule: schedule:
- cron: "*/15 * * * *" - cron: "*/10 * * * *"
jobs: jobs:
sqlcreatecollection: sqlcreatecollection:
runs-on: ubuntu-latest runs-on: ubuntu-latest

View File

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

View File

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