(
config,
expectedEnabled,
expectedAutoCleanup,
expectedCleanupDisabled,
expectedValue)
| 88 | }); |
| 89 | |
| 90 | async function runSchedulingConfigTest( |
| 91 | config, |
| 92 | expectedEnabled, |
| 93 | expectedAutoCleanup, |
| 94 | expectedCleanupDisabled, |
| 95 | expectedValue) { |
| 96 | store.state.scriptConfig.scriptConfig = config; |
| 97 | |
| 98 | await vueTicks(); |
| 99 | |
| 100 | expect(_findField('Enabled').value).toBe(expectedEnabled) |
| 101 | expect(_findField('Auto cleanup').value).toBe(expectedAutoCleanup) |
| 102 | expect(_findField('Auto cleanup').disabled).toBe(expectedCleanupDisabled) |
| 103 | |
| 104 | expect(store.state.scriptConfig.scriptConfig.scheduling).toEqual(expectedValue) |
| 105 | } |
| 106 | |
| 107 | it('Test show scheduling when no config', async function () { |
| 108 | await runSchedulingConfigTest( |
no test coverage detected