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:
1 parent
23590b7024
commit
644bd69545
2 files changed
+5
-9
No files matched your search
@@ -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' }
|
||||
);
|
||||
}
|
||||
})
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user