Skip to content

Commit

Permalink
Merge branch 'main' into viewblock-test
Browse files Browse the repository at this point in the history
  • Loading branch information
kptdobe committed Aug 15, 2024
2 parents aa07acf + c6b6800 commit c9fa42f
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 9 deletions.
11 changes: 6 additions & 5 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
},
"devDependencies": {
"@adobe/eslint-config-helix": "2.0.6",
"@adobe/helix-rum-js": "2.1.4",
"@adobe/helix-rum-js": "2.2.0",
"@esm-bundle/chai": "4.3.4-fix.0",
"@semantic-release/changelog": "6.0.3",
"@semantic-release/git": "10.0.1",
Expand Down
10 changes: 7 additions & 3 deletions test/it/fromrum.test.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,22 +22,26 @@
});
}
};
</script>
<script defer type="text/javascript" src="/.rum/@adobe/helix-rum-js@^2/dist/rum-standalone.js"></script>
</script>
</head>

<body>
<img src="/test/it/img.test.html">
<script type="module">
import { runTests } from '@web/test-runner-mocha';
import { sendMouse } from '@web/test-runner-commands';
import { assert } from '@esm-bundle/chai';
import { assert } from '@esm-bundle/chai';

runTests(async () => {
beforeEach(() => {
const usp = new URLSearchParams(window.location.search);
usp.append('utm_medium', 'test');
window.history.replaceState({}, '', `${window.location.pathname}?${usp.toString()}`);
console.log('replaced', window.location.href);
const script = document.createElement('script');
script.type = 'text/javascript';
script.src = '/.rum/@adobe/helix-rum-js@^2/dist/rum-standalone.js';
document.head.appendChild(script);
});

describe('HTML Integration Tests', () => {
Expand Down

0 comments on commit c9fa42f

Please sign in to comment.