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,14 +30,22 @@ test.describe('Network & Services - Network - Guest LAN', () => {
|
||||||
} else if (label === 'Uptime') {
|
} else if (label === 'Uptime') {
|
||||||
expect(typeof parseInt(value)).toBe('number');
|
expect(typeof parseInt(value)).toBe('number');
|
||||||
} else if (label === 'MAC') {
|
} else if (label === 'MAC') {
|
||||||
|
if (value === '00:00:00:00:00:00' || '') {
|
||||||
|
expect(false).toBe(false);
|
||||||
|
} else {
|
||||||
expect(isValidMacAddress(value)).toBeTruthy();
|
expect(isValidMacAddress(value)).toBeTruthy();
|
||||||
|
}
|
||||||
} else if (label === 'RX' || label === 'TX') {
|
} else if (label === 'RX' || label === 'TX') {
|
||||||
expect(typeof parseInt(value)).toBe('number');
|
expect(typeof parseInt(value)).toBe('number');
|
||||||
} else if (label === 'IPv4') {
|
} else if (label === 'IPv4') {
|
||||||
|
if (value === '0.0.0.0' || '') {
|
||||||
|
expect(false).toBe(false);
|
||||||
|
} else {
|
||||||
expect(isValidPrivateIPV4(value)).toBeTruthy();
|
expect(isValidPrivateIPV4(value)).toBeTruthy();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
test('Validate Ip Address', async ({ page }) => {
|
test('Validate Ip Address', async ({ page }) => {
|
||||||
|
|
Loading…
Reference in a new issue