Move around some parameters for the tests.

The 'schedule' call is going to do something slightly more specialized,
as I want to exercise some things the test currently doesn't.
This commit is contained in:
Ian Denhardt committed 2020-02-13 20:06:14 -05:00
1 parent 23590b7024
commit 644bd69545
2 files changed
+5 -9

No files matched your search

+4 -4
View File
@@ -36,11 +36,11 @@ const bridge = conn.restore(null, SandstormHttpBridge);
Meteor.startup(() => {
Meteor.methods({
schedule(job) {
schedule(objectId) {
bridge.getSandstormApi().api.schedule(
job.name,
makeCallback(job.objectId),
job.schedule,
{ defaultText: 'test job' },
makeCallback(objectId),
{ periodic: 'hourly' }
);
}
})
+1 -5
View File
@@ -55,11 +55,7 @@ module.exports['Test saving and restoring capabilities via AppHooks'] = function
.waitForElementVisible('.grain-frame', medium_wait)
.grainFrame()
.execute(function() {
Meteor.call('schedule', {
name: { defaultText: 'test job' },
schedule: { periodic: 'hourly' },
objectId: 'someObjectId',
})
Meteor.call('schedule', 'someObjectId')
})
.frameParent()
.pause(short_wait)