diff --git a/e2e/global-setup.js b/e2e/global-setup.js index cb36a8a..581f302 100644 --- a/e2e/global-setup.js +++ b/e2e/global-setup.js @@ -47,6 +47,10 @@ User.objects.create_user(${JSON.stringify(TEST_USER.username)}, "", ${JSON.strin fs.mkdirSync(AUTH_DIR, { recursive: true }); // The book the reader tests read (e2e/make_epub.py). execFileSync(PYTHON, [path.join(__dirname, 'make_epub.py'), path.join(AUTH_DIR, 'book.epub')], { stdio: 'inherit' }); + // Two more for uploading several at once (navigation.spec.js). + for (const n of ['Eins', 'Zwei']) { + execFileSync(PYTHON, [path.join(__dirname, 'make_epub.py'), path.join(AUTH_DIR, `many-${n}.epub`), `Mehrfach ${n}`], { stdio: 'inherit' }); + } const browser = await chromium.launch(); const page = await browser.newPage({ baseURL: BASE_URL }); diff --git a/e2e/make_epub.py b/e2e/make_epub.py index 6f9d905..df99cd9 100644 --- a/e2e/make_epub.py +++ b/e2e/make_epub.py @@ -28,7 +28,7 @@ def chapter(n):