mirror of
https://github.com/Sosokker/B2D-Ventures.git
synced 2025-12-18 21:44:06 +01:00
Update search result page UI and add placeholder test
This commit is contained in:
parent
39bb3c3017
commit
ea928754d3
26
tests/test-3.spec.ts
Normal file
26
tests/test-3.spec.ts
Normal file
@ -0,0 +1,26 @@
|
||||
import { test, expect } from '@playwright/test';
|
||||
test.use({
|
||||
storageState: './storageState.json'
|
||||
});
|
||||
|
||||
test('Test dashboard visibility', async ({ page }) => {
|
||||
await page.goto('http://127.0.0.1:3000/dashboard');
|
||||
|
||||
const dashboardHeading = page.locator('h2', { hasText: 'Dashboard' });
|
||||
await expect(dashboardHeading).toBeVisible();
|
||||
|
||||
const profileViewHeading = page.locator('h3', { hasText: 'Profile Views' });
|
||||
await expect(profileViewHeading).toBeVisible();
|
||||
|
||||
const totalFollowerHeading = page.locator('h3', { hasText: 'Total Followers' });
|
||||
await expect(totalFollowerHeading).toBeVisible();
|
||||
|
||||
const fundsRaisedHeading = page.locator('h3', { hasText: 'Total Funds Raised' });
|
||||
await expect(fundsRaisedHeading).toBeVisible();
|
||||
|
||||
const overviewHeading = page.locator('h3', { hasText: 'Overview' });
|
||||
await expect(overviewHeading).toBeVisible();
|
||||
|
||||
const recentFundHeading = page.locator('h3', { hasText: 'Recent Funds' });
|
||||
await expect(recentFundHeading).toBeVisible();
|
||||
});
|
||||
Loading…
Reference in New Issue
Block a user