Network-guest-lan : fixes Info Table
This commit is contained in:
parent
3ae8878669
commit
16f3a509ca
1 changed files with 10 additions and 2 deletions
|
@ -30,11 +30,19 @@ test.describe('Network & Services - Network - Guest LAN', () => {
|
|||
} else if (label === 'Uptime') {
|
||||
expect(typeof parseInt(value)).toBe('number');
|
||||
} else if (label === 'MAC') {
|
||||
expect(isValidMacAddress(value)).toBeTruthy();
|
||||
if (value === '00:00:00:00:00:00' || '') {
|
||||
expect(false).toBe(false);
|
||||
} else {
|
||||
expect(isValidMacAddress(value)).toBeTruthy();
|
||||
}
|
||||
} else if (label === 'RX' || label === 'TX') {
|
||||
expect(typeof parseInt(value)).toBe('number');
|
||||
} else if (label === 'IPv4') {
|
||||
expect(isValidPrivateIPV4(value)).toBeTruthy();
|
||||
if (value === '0.0.0.0' || '') {
|
||||
expect(false).toBe(false);
|
||||
} else {
|
||||
expect(isValidPrivateIPV4(value)).toBeTruthy();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue