Web Dev Solutions

Catalin Mititiuc

aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCatalin Mititiuc <webdevcat@proton.me>2024-06-02 15:04:13 -0700
committerCatalin Mititiuc <webdevcat@proton.me>2024-06-02 15:04:13 -0700
commit1360a4b944c4c2f0fcdf4bcf2aaaaaac204bb532 (patch)
tree2b91b697337b7fbfc643344c3bb5e667999d055c /test/integration/select.test.js
parentafda283d49ae0dfda4d7af0a8556c3618675fefa (diff)
Add a test helper to build the svg document
Diffstat (limited to 'test/integration/select.test.js')
-rw-r--r--test/integration/select.test.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/integration/select.test.js b/test/integration/select.test.js
index c91165d..588876b 100644
--- a/test/integration/select.test.js
+++ b/test/integration/select.test.js
@@ -27,7 +27,7 @@ describe('a trooper', () => {
beforeEach(async () => {
await mockResponse(driver, `/assets/images/${scenario}`, fixture, (document) => {
placeCounter(document, createTroopCounter(), { x: 1, y: 1 });
- return `<?xml version="1.0" standalone="yes"?>\n` + document.querySelector('svg').outerHTML;
+ return svgDocument(document);
});
});
@@ -73,7 +73,7 @@ describe('a selected trooper', () => {
beforeEach(async () => {
await mockResponse(driver, `/assets/images/${scenario}`, fixture, (document) => {
placeCounter(document, selectCounter(createTroopCounter()), { x: 1, y: 1 });
- return `<?xml version="1.0" standalone="yes"?>\n` + document.querySelector('svg').outerHTML;
+ return svgDocument(document);
});
});