Runner Tweaks (#62)
Co-authored-by: Steve Faulkner <stfaul@microsoft.com>
This commit is contained in:
parent
3bf42b23dd
commit
e5fc6f2022
|
@ -1,7 +1,7 @@
|
|||
name: Runners
|
||||
on:
|
||||
schedule:
|
||||
- cron: "*/15 * * * *"
|
||||
- cron: "*/10 * * * *"
|
||||
jobs:
|
||||
sqlcreatecollection:
|
||||
runs-on: ubuntu-latest
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
});
|
||||
});
|
||||
|
|
|
@ -13,3 +13,9 @@ module.exports.trackEvent = (...args) => {
|
|||
client.trackEvent(...args);
|
||||
}
|
||||
};
|
||||
|
||||
module.exports.trackException = exception => {
|
||||
if (client) {
|
||||
client.trackException({ exception });
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue