mirror of
https://github.com/4gray/iptvnator.git
synced 2026-10-15 05:36:17 -08:00
test(e2e): server storage across browsers and the migration dialog
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
77df7922c1
commit
ced58e3ac0
3 files changed
+213
-3
No files matched your search
@@ -41,9 +41,25 @@ describe('Playwright web-backend launch', () => {
|
||||
|
||||
expect(source).not.toMatch(/\bnx\b[^'"`\n]*web-backend/);
|
||||
expect(start).toBeGreaterThan(-1);
|
||||
expect(
|
||||
source.indexOf(launchCommand, start + launchCommand.length)
|
||||
).toBe(-1);
|
||||
// One stateless backend, plus at most one storage-enabled one.
|
||||
const second = source.indexOf(
|
||||
`'${launchCommand}'`,
|
||||
start + launchCommand.length
|
||||
);
|
||||
if (second !== -1) {
|
||||
const storageEntry = source.slice(
|
||||
second,
|
||||
source.indexOf('url:', second)
|
||||
);
|
||||
expect(storageEntry).toContain(`IPTVNATOR_STORAGE: 'server'`);
|
||||
expect(storageEntry).toContain('PORT: storageBackendPort,');
|
||||
expect(
|
||||
source.indexOf(
|
||||
`'${launchCommand}'`,
|
||||
second + launchCommand.length
|
||||
)
|
||||
).toBe(-1);
|
||||
}
|
||||
|
||||
// WEB_BACKEND_PORT relocates the run; its default is the target's.
|
||||
const { PORT: port, ...fixedEnv } = serveEnv;
|
||||
|
||||
Reference in new issue
Block a user