force failures and enable dry-run mode for debugging

This commit is contained in:
spalger 2019-12-03 00:15:33 -07:00
parent 30db70a82c
commit ac0c287a3f
3 changed files with 3 additions and 1 deletions

View file

@ -35,7 +35,7 @@ export function runFailedTestsReporterCli() {
throw createFlagError('Missing --build-url or process.env.BUILD_URL');
}
const dryRun = !!flags['dry-run'];
const dryRun = true;
if (!dryRun) {
// JOB_NAME is formatted as `elastic+kibana+7.x` in some places and `elastic+kibana+7.x/JOB=kibana-intake,node=immutable` in others
const jobNameSplit = (process.env.JOB_NAME || '').split(/\+|\//);

View file

@ -43,6 +43,7 @@ export default function ({ getService }) {
describe('install', () => {
it('should return 404 if id does not match any sample data sets', async () => {
throw new Error('forced error');
await supertest
.post(`/api/sample_data/xxxx`)
.set('kbn-xsrf', 'kibana')

View file

@ -51,6 +51,7 @@ export default function ({ getPageObjects }) {
});
it('Saves on confirm duplicate title warning', async function () {
throw new Error('failure');
await PageObjects.dashboard.gotoDashboardLandingPage();
await PageObjects.dashboard.clickNewDashboard();
await PageObjects.dashboard.enterDashboardTitleAndClickSave(dashboardName, { waitDialogIsClosed: false });