adjust test assumptions to dataset

This commit is contained in:
Matthias Mair 2024-04-17 22:37:10 +02:00
parent 3f6f3b3aad
commit be13a8d00b
No known key found for this signature in database
GPG Key ID: A593429DDA23B66A

View File

@ -34,11 +34,13 @@ test('PUI - Pages - Part - Pricing', async ({ page }) => {
// Overview Graph
let graph = page.locator('#pricing-overview-chart');
await graph.waitFor();
await graph.getByText('$45').waitFor();
await graph.getByText('$60').waitFor();
await graph.getByText('BOM Pricing').waitFor();
await graph.getByText('Overall Pricing').waitFor();
await graph.locator('path').nth(1).hover();
await page.getByText('min_value : $43').waitFor();
await page.getByText('min_value : $50').waitFor();
await graph.locator('path').nth(2).hover();
await page.getByText('max_value : $52.88').waitFor();
// BOM Pricing
await page.getByLabel('Pricing Overview').locator('a').click();