Skip to content

Commit

Permalink
MWPW-154998 [MEP][MILO] Manifests do not execute in the right order w…
Browse files Browse the repository at this point in the history
…hen there is a disabled manifest (#2632)

add default order
  • Loading branch information
vgoodric authored Jul 25, 2024
1 parent ee4f063 commit add9745
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions libs/features/personalization/personalization.js
Original file line number Diff line number Diff line change
Expand Up @@ -615,6 +615,7 @@ const createDefaultExperiment = (manifest) => ({
disabled: manifest.disabled,
event: manifest.event,
manifest: manifest.manifestPath,
executionOrder: '1-1',
selectedVariant: { commands: [], fragments: [] },
selectedVariantName: 'default',
variantNames: ['all'],
Expand Down
2 changes: 1 addition & 1 deletion test/utils/utils.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -631,7 +631,7 @@ describe('Utils', () => {
document.head.innerHTML = await readFile({ path: './mocks/head-personalization.html' });
await utils.loadArea();
const resultConfig = utils.getConfig();
const resultExperiment = resultConfig.mep.experiments[2];
const resultExperiment = resultConfig.mep.experiments[0];
expect(resultConfig.mep.preview).to.be.true;
expect(resultConfig.mep.experiments.length).to.equal(3);
expect(resultExperiment.manifest).to.equal('/products/special-offers-manifest.json');
Expand Down

0 comments on commit add9745

Please sign in to comment.