Fixed random test failure in /core/test/integration/data/importer/importers/data_spec.js

no issue

- added order option when fetching tags
This commit is contained in:
kirrg001 2018-08-10 12:33:53 +02:00 committed by Katharina Irrgang
parent f0b04d0ef1
commit ef9b116856

View File

@ -584,7 +584,7 @@ describe('Integration: Importer', function () {
.then(function () {
return Promise.all([
models.Post.findPage(Object.assign({withRelated: ['tags']}, testUtils.context.internal)),
models.Tag.findPage(testUtils.context.internal)
models.Tag.findPage(Object.assign({order: 'slug ASC'}, testUtils.context.internal)),
]);
}).then(function (result) {
const posts = result[0].posts,
@ -682,7 +682,7 @@ describe('Integration: Importer', function () {
.then(function () {
return Promise.all([
models.Post.findPage(Object.assign({withRelated: ['tags']}, testUtils.context.internal)),
models.Tag.findPage(testUtils.context.internal),
models.Tag.findPage(Object.assign({order: 'slug ASC'}, testUtils.context.internal)),
models.User.findPage(Object.assign({withRelated: ['roles']}, testUtils.context.internal))
]);
}).then(function (result) {
@ -824,7 +824,7 @@ describe('Integration: Importer', function () {
imported.problems.length.should.eql(0);
return Promise.all([
models.Tag.findPage(testUtils.context.internal),
models.Tag.findPage(Object.assign({order: 'slug ASC'}, testUtils.context.internal)),
models.Post.findPage(Object.assign({withRelated: ['tags']}, testUtils.context.internal))
]);
}).then(function (result) {
@ -1122,7 +1122,7 @@ describe('Integration: Importer', function () {
.then(function () {
return Promise.all([
models.Post.findPage(Object.assign({withRelated: ['tags']}, testUtils.context.internal)),
models.Tag.findPage(testUtils.context.internal),
models.Tag.findPage(Object.assign({order: 'slug ASC'}, testUtils.context.internal)),
models.User.findPage(Object.assign({withRelated: ['roles']}, testUtils.context.internal)),
models.Client.findAll(testUtils.context.internal),
models.ClientTrustedDomain.findAll(testUtils.context.internal)