Skip to content

Commit ce0cb02

Browse files
test: add season and s1 subtype filter test cases
1 parent 724eb82 commit ce0cb02

2 files changed

Lines changed: 25 additions & 0 deletions

File tree

e2e/geographic/seasonal.spec.ts

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
import { test, expect } from '@playwright/test';
2+
3+
test('test', async ({ page }) => {
4+
await page.goto('/');
5+
await page.getByRole('button', { name: 'Filters', exact: true }).click();
6+
await page.getByRole('switch', { name: 'Seasonal Search' }).click();
7+
await page.getByRole('button', { name: '+' }).first().click();
8+
await page.getByRole('button', { name: '+' }).first().click();
9+
await page.getByRole('button', { name: '-' }).nth(2).click();
10+
await page.getByRole('button', { name: '-' }).nth(2).click();
11+
await page.getByRole('button', { name: '-' }).nth(2).click();
12+
await expect(page.locator('app-info-bar')).toContainText('Season: 3 - 177');
13+
});

e2e/geographic/subtypes.spec.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
import { test, expect } from '@playwright/test';
2+
3+
test('Sentinel Satellite Filter', async ({ page }) => {
4+
await page.goto('/');
5+
await page.getByRole('button', { name: 'Filters', exact: true }).click();
6+
await page.locator('#mat-select-value-3').click();
7+
await page
8+
.getByRole('option', { name: 'SC' })
9+
.locator('mat-pseudo-checkbox')
10+
.click();
11+
await expect(page.locator('app-info-bar')).toContainText('Dataset: SC');
12+
});

0 commit comments

Comments
 (0)