|
| 1 | +import { test, expect } from '@playwright/test'; |
| 2 | + |
| 3 | +test('NISAR default filter sticks around', async ({ page }) => { |
| 4 | + await page.goto('/'); |
| 5 | + await page.getByRole('button', { name: 'Sentinel-' }).click(); |
| 6 | + await page |
| 7 | + .getByRole('menuitem', { name: 'NISAR (Uncalibrated) NISAR' }) |
| 8 | + .click(); |
| 9 | + await expect(page.locator('app-info-bar')).toContainText( |
| 10 | + 'Production Configuration: PR', |
| 11 | + ); |
| 12 | + await page.locator('#mat-button-toggle-9-button').click(); |
| 13 | + await page.getByRole('menuitem', { name: 'Clear Search' }).click(); |
| 14 | + await expect(page.locator('app-info-bar')).toContainText( |
| 15 | + 'Production Configuration: PR', |
| 16 | + ); |
| 17 | + await page.getByRole('button', { name: 'Filters', exact: true }).click(); |
| 18 | + await page |
| 19 | + .locator('div') |
| 20 | + .filter({ hasText: /^Production ConfigurationProduction$/ }) |
| 21 | + .first() |
| 22 | + .click(); |
| 23 | + await page.getByRole('option', { name: 'Production' }).click(); |
| 24 | + await page.getByText('Urgent Response').click(); |
| 25 | + await page.locator('.cdk-overlay-backdrop').click(); |
| 26 | + |
| 27 | + await expect(page.locator('app-info-bar')).toContainText( |
| 28 | + 'Production Configuration: UR', |
| 29 | + ); |
| 30 | + await page.locator('#mat-button-toggle-7-button').click(); |
| 31 | + await page.getByRole('menuitem', { name: 'Clear Search' }).click(); |
| 32 | + await expect(page.locator('app-info-bar')).toContainText( |
| 33 | + 'Production Configuration: PR', |
| 34 | + ); |
| 35 | +}); |
0 commit comments