Network-Analyzer: Traffic Monitor Date Select test completed
This commit is contained in:
parent
f2dab2e83e
commit
4c37ce3595
1 changed files with 19 additions and 0 deletions
|
@ -19,6 +19,25 @@ test.describe('General - Dashboard - Network Analyzer - Traffic Monitor', () =>
|
|||
expect(await page.$('header:has-text("Traffic Monitor")')).toBeTruthy();
|
||||
});
|
||||
|
||||
test('Traffic Monitor select Date', async ({ page }) => {
|
||||
const selectElement = page.locator('select.period-select');
|
||||
|
||||
const options = await selectElement.locator('option');
|
||||
|
||||
const optionCount = await options.count();
|
||||
const date = [];
|
||||
for (let i = 0; i < optionCount; i++) {
|
||||
const option = options.nth(i);
|
||||
const value = await option.getAttribute('value');
|
||||
date.push(value);
|
||||
}
|
||||
|
||||
await selectElement.selectOption(date[1]);
|
||||
|
||||
const selectedValue = await selectElement.inputValue();
|
||||
expect(selectedValue).toBe(date[1]);
|
||||
});
|
||||
|
||||
test('Traffic Distribution Top Cards', async ({ page }) => {
|
||||
const hosts = await page.getByRole('heading', { name: 'Hosts' });
|
||||
const hostsIcon = await page.locator('.mdi-server-network');
|
||||
|
|
Loading…
Reference in a new issue