Dawnline 0.16.3
Build packages / CI (push) Blocked by required conditions
Build packages / Version (push) Waiting to run
CI / Web (format, types, tests, bundles) (push) Blocked by required conditions
CI / ShellCheck (push) Blocked by required conditions
CI / ucode static checks (push) Blocked by required conditions
CI / ucode compiles and tests pass (OpenWrt 24.10) (push) Blocked by required conditions
CI / ucode compiles and tests pass (OpenWrt 25.12) (push) Blocked by required conditions
Build packages / CI (push) Blocked by required conditions
Build packages / Version (push) Waiting to run
CI / Web (format, types, tests, bundles) (push) Blocked by required conditions
CI / ShellCheck (push) Blocked by required conditions
CI / ucode static checks (push) Blocked by required conditions
CI / ucode compiles and tests pass (OpenWrt 24.10) (push) Blocked by required conditions
CI / ucode compiles and tests pass (OpenWrt 25.12) (push) Blocked by required conditions
- Move Dawnline to Services in LuCI and update links and documentation. - Make activity messages clearer, including device renames and person-specific history. - Prune redundant frontend tests.
This commit is contained in:
1 parent
f2b5ba101b
commit
b0d9982796
37 files changed
+452
-243
No files matched your search
+1
-21
@@ -1,5 +1,5 @@
|
||||
import { describe, expect, it } from 'vitest';
|
||||
import { wayState, type WayState } from '../src/portal/way';
|
||||
import { wayState } from '../src/portal/way';
|
||||
import type { Device, SetupState } from '../src/shared/types';
|
||||
|
||||
/** When the sheet opened (router clock). */
|
||||
@@ -73,24 +73,4 @@ describe('the set-up sheet’s way', () => {
|
||||
expect(wayState(dev({ online: false, handshake: OPENED + 9, setup: null }), OPENED)).toBe('waiting');
|
||||
expect(wayState(undefined, OPENED)).toBe('waiting');
|
||||
});
|
||||
|
||||
it('follows a whole set-up: knocks, no data, imported again, connected', () => {
|
||||
const seen: WayState[] = [];
|
||||
const answers: Partial<Device>[] = [
|
||||
{},
|
||||
{ setup: setup('trying') },
|
||||
{ setup: setup('trying') },
|
||||
// The network let it through, but the phone holds an old configuration.
|
||||
{ online: true, handshake: OPENED + 40 },
|
||||
{ online: true, handshake: OPENED + 40, setup: setup('nodata', OPENED + 52) },
|
||||
// Gone offline: plain waiting, no line of its own.
|
||||
{ online: false, handshake: OPENED + 40 },
|
||||
{ online: true, handshake: OPENED + 300, setup: setup('flowing', OPENED + 300) },
|
||||
];
|
||||
for (const a of answers) {
|
||||
const st = wayState(dev(a), OPENED);
|
||||
if (st !== seen[seen.length - 1]) seen.push(st);
|
||||
}
|
||||
expect(seen).toEqual(['waiting', 'trying', 'waiting', 'nodata', 'waiting', 'connected']);
|
||||
});
|
||||
});
|
||||
Reference in new issue
Block a user