UNPKG

@itentialopensource/device-pre-post-check-execution

Version:

A device pre post check execution demo for Itential Automation Platform (IAP)

19 lines (17 loc) 722 B
import { WorkflowRunner, PrebuiltRunner } from '@itential-tools/iap-cypress-testing-library/testRunner/testRunners'; describe('Default: Cypress Tests', function () { let prebuiltRunner; before(function () { //creates a prebuilt runner for importing the prebuilt cy.fixture(`../../../artifact.json`).then((data) => { prebuiltRunner = new PrebuiltRunner(data); }); }); describe('Default: Imports Pre-Built', function () { // eslint-disable-next-line mocha/no-hooks-for-single-case it('Default: Should import the prebuilt into IAP', function () { prebuiltRunner.deletePrebuilt.single({ failOnStatusCode: false }); prebuiltRunner.importPrebuilt.single({}); }); }); });