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
|
name: Runners
|
||||||
on:
|
on:
|
||||||
schedule:
|
schedule:
|
||||||
- cron: "*/15 * * * *"
|
- cron: "*/10 * * * *"
|
||||||
jobs:
|
jobs:
|
||||||
sqlcreatecollection:
|
sqlcreatecollection:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
|
@ -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;
|
||||||
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
|
@ -13,3 +13,9 @@ module.exports.trackEvent = (...args) => {
|
||||||
client.trackEvent(...args);
|
client.trackEvent(...args);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
module.exports.trackException = exception => {
|
||||||
|
if (client) {
|
||||||
|
client.trackException({ exception });
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
Loading…
Reference in New Issue