Network-Analyzer: Traffic Monitor Tab test added
This commit is contained in:
parent
4c37ce3595
commit
e1f446762c
1 changed files with 10 additions and 0 deletions
|
@ -38,6 +38,15 @@ test.describe('General - Dashboard - Network Analyzer - Traffic Monitor', () =>
|
||||||
expect(selectedValue).toBe(date[1]);
|
expect(selectedValue).toBe(date[1]);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
test('Tabs', async ({ page }) => {
|
||||||
|
const distributionTab = await page.locator('#distribution-tab-bwm');
|
||||||
|
const applicationTab = await page.locator('#app-tab-bwm');
|
||||||
|
const ipTab = await page.locator('#ip-tab-bwm');
|
||||||
|
const exportTab = await page.locator('#export-tab-bwm');
|
||||||
|
|
||||||
|
expect(distributionTab && applicationTab && ipTab && exportTab).toBeTruthy();
|
||||||
|
});
|
||||||
|
|
||||||
test('Traffic Distribution Top Cards', async ({ page }) => {
|
test('Traffic Distribution Top Cards', async ({ page }) => {
|
||||||
const hosts = await page.getByRole('heading', { name: 'Hosts' });
|
const hosts = await page.getByRole('heading', { name: 'Hosts' });
|
||||||
const hostsIcon = await page.locator('.mdi-server-network');
|
const hostsIcon = await page.locator('.mdi-server-network');
|
||||||
|
@ -95,6 +104,7 @@ test.describe('General - Dashboard - Network Analyzer - Traffic Monitor', () =>
|
||||||
|
|
||||||
await page.click('#app-tab-bwm');
|
await page.click('#app-tab-bwm');
|
||||||
});
|
});
|
||||||
|
|
||||||
test('Download / Application', async ({ page }) => {
|
test('Download / Application', async ({ page }) => {
|
||||||
expect(await page.$('p:has-text("Download / Application")')).toBeTruthy();
|
expect(await page.$('p:has-text("Download / Application")')).toBeTruthy();
|
||||||
expect(await page.isVisible('#chart-3'));
|
expect(await page.isVisible('#chart-3'));
|
||||||
|
|
Loading…
Reference in a new issue