Skip to content

Commit

Permalink
fix test logic
Browse files Browse the repository at this point in the history
  • Loading branch information
nk2136 committed Dec 18, 2024
1 parent 534d10f commit 02ed10f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions end2end/tests/reportBuilder.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ import { test, expect } from '@playwright/test';
test('column order is maintained after modifying the search filter', async ({ page }, testInfo) => {
await page.goto('https://host.docker.internal/Test_Request_Portal/?a=reports&v=3&query=N4IgLgpgTgtgziAXAbVASwCZJBghmXEAGhDQDsM0BjfAeygEkARbAVmJFoAdo6psAPBxj4qAC2wBOAAyyOAc3wRsAQQByLAL5F0WRDggAbCJCwluvMPWwBeYaImJpJRZFUaQmgLokAVrXIEFB8QOHowJGBtEHkTJnxCFBAAFg4ARjSOdhDDNBg0CMQ02WcQXPywAHkAM2q4EyRpTSA%3D%3D&indicators=NobwRAlgdgJhDGBDALgewE4EkAiYBcYyEyANgKZgA0YUiAthQVWAM4bL4AMAvpeNHCRosuAgBZmtBvjABZAK4kiAAhLQyy5GQAeHam3Qc8ARl79YCFBhwzjxyfUatoAc3Kr1mnXtbt8AJjNICyFrUTAAVgdpAgA5eQZ0BGYDIwBmbgBdIA%3D%3D&sort=N4Ig1gpgniBcIFYQBoQHsBOATCG4hwGcBjEAXyA%3D');

await expect(page.getByLabel('Sort by Numeric')).toBeInViewport();
await expect(page.locator('th').nth(4)).toContainText('Numeric');
// Screenshot the original state
let screenshot = await page.screenshot();
await testInfo.attach('screenshot', { body: screenshot, contentType: 'image/png' });
Expand Down

0 comments on commit 02ed10f

Please sign in to comment.