Skip to content

Commit

Permalink
refactored test
Browse files Browse the repository at this point in the history
  • Loading branch information
Denys Fedotov authored and Denys Fedotov committed Jan 23, 2025
1 parent a69959a commit 39afdf3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"target-test": {
"commands": [
{
"action": "target-manifest-action",
"action": "append",
"selector": "section1",
"pageFilter": "",
"target": "https://main--milo--adobecom.hlx.page/drafts/vgoodrich/fragments/2024/q1/mepmanifestorder/fragments/test1",
Expand All @@ -38,7 +38,7 @@
"selectedVariant": {
"commands": [
{
"action": "target-manifest-action",
"action": "append",
"selector": "section1",
"pageFilter": "",
"target": "https://main--milo--adobecom.hlx.page/drafts/vgoodrich/fragments/2024/q1/mepmanifestorder/fragments/test",
Expand Down Expand Up @@ -70,7 +70,7 @@
"target-test": {
"commands": [
{
"action": "server-manifest-action",
"action": "appendtosection",
"selector": "section1",
"pageFilter": "",
"target": "https://main--milo--adobecom.hlx.page/drafts/vgoodrich/fragments/2024/q1/mepmanifestorder/fragments/test1",
Expand All @@ -92,7 +92,7 @@
"selectedVariant": {
"commands": [
{
"action": "server-manifest-action",
"action": "appendtosection",
"selector": "section1",
"pageFilter": "",
"target": "https://main--milo--adobecom.hlx.page/drafts/vgoodrich/fragments/2024/q1/mepmanifestorder/fragments/pzn",
Expand Down
4 changes: 2 additions & 2 deletions test/features/personalization/personalization.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -406,7 +406,7 @@ describe('MEP Utils', () => {
const response = cleanAndSortManifestList(manifests, config);
const result = response.find((manifest) => manifest.source.length > 1);
expect(result).to.be.not.null;
expect(result.selectedVariant.commands[0].action).to.equal('server-manifest-action');
expect(result.selectedVariant.commands[0].action).to.equal('appendtosection');
});
it('chooses target manifest over server manifest if same manifest path and in production and selected audience is "target-*"', async () => {
const config = { env: { name: 'prod' } };
Expand All @@ -417,7 +417,7 @@ describe('MEP Utils', () => {
const response = cleanAndSortManifestList(manifests, config);
const result = response.find((manifest) => manifest.source.length > 1);
expect(result).to.be.not.null;
expect(result.selectedVariant.commands[0].action).to.equal('target-manifest-action');
expect(result.selectedVariant.commands[0].action).to.equal('append');
});
});
});

0 comments on commit 39afdf3

Please sign in to comment.