Skip to content

Commit a67b7fd

Browse files
authored
Merge pull request #2498 from asfadmin/playwright-docker
Use docker image for dependencies in github action
2 parents ecff492 + 010dada commit a67b7fd

5 files changed

Lines changed: 19 additions & 97 deletions

File tree

.github/workflows/e2etest.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ jobs:
1313
test:
1414
timeout-minutes: 60
1515
runs-on: ubuntu-latest
16+
container:
17+
image: mcr.microsoft.com/playwright:v1.59.1-noble
18+
options: --user 1001
1619
environment:
1720
name: playwright
1821
deployment: false
@@ -34,8 +37,6 @@ jobs:
3437
run: mkdir -p playwright/.auth
3538
- name: Import Credentials
3639
run: echo "${{ secrets.TEST_ACCOUNT_CREDS }}" | base64 --decode > playwright/.auth/creds.json
37-
- name: Install Playwright Browsers
38-
run: npx playwright install --with-deps
3940
- name: Run Playwright tests
4041
run: npm run e2e -- --shard=${{ matrix.shardIndex }}/${{ matrix.shardTotal }}
4142
- uses: actions/upload-artifact@v4

e2e/geographic/aoi-file-input.spec.ts

Lines changed: 0 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,6 @@ import { test, expect } from '@playwright/test';
33
test('Import a geojson point file', async ({ page }) => {
44
await page.goto('/');
55
await page.locator('app-aoi-filter').getByText('arrow_drop_down').click();
6-
await page
7-
.locator('app-aoi-filter')
8-
.getByRole('button', { name: 'Import File' })
9-
.click();
106

117
await page
128
.locator('app-aoi-filter')
@@ -25,10 +21,6 @@ test('Import a geojson point file', async ({ page }) => {
2521
test('Import a KML file', async ({ page }) => {
2622
await page.goto('/');
2723
await page.locator('app-aoi-filter').getByText('arrow_drop_down').click();
28-
await page
29-
.locator('app-aoi-filter')
30-
.getByRole('button', { name: 'Import File' })
31-
.click();
3224

3325
await page
3426
.locator('app-aoi-filter')
@@ -48,10 +40,6 @@ test('Import a KML file', async ({ page }) => {
4840
test('Import a .shp shape file', async ({ page }) => {
4941
await page.goto('/');
5042
await page.locator('app-aoi-filter').getByText('arrow_drop_down').click();
51-
await page
52-
.locator('app-aoi-filter')
53-
.getByRole('button', { name: 'Import File' })
54-
.click();
5543

5644
await page
5745
.locator('app-aoi-filter')
@@ -70,10 +58,6 @@ test('Import a .shp shape file', async ({ page }) => {
7058
test('Import a .zip shape file', async ({ page }) => {
7159
await page.goto('/');
7260
await page.locator('app-aoi-filter').getByText('arrow_drop_down').click();
73-
await page
74-
.locator('app-aoi-filter')
75-
.getByRole('button', { name: 'Import File' })
76-
.click();
7761

7862
await page
7963
.locator('app-aoi-filter')
@@ -92,10 +76,6 @@ test('Import a .zip shape file', async ({ page }) => {
9276
test('Import multiple geojson files sequentially', async ({ page }) => {
9377
await page.goto('/');
9478
await page.locator('app-aoi-filter').getByText('arrow_drop_down').click();
95-
await page
96-
.locator('app-aoi-filter')
97-
.getByRole('button', { name: 'Import File' })
98-
.click();
9979

10080
await page
10181
.locator('app-aoi-filter')
@@ -110,11 +90,6 @@ test('Import multiple geojson files sequentially', async ({ page }) => {
11090
.inputValue();
11191
expect(firstValue).toContain('POLYGON');
11292

113-
await page
114-
.locator('app-aoi-filter')
115-
.getByRole('button', { name: 'Import File' })
116-
.click();
117-
11893
await page
11994
.locator('app-aoi-filter')
12095
.locator('input[type="file"]')
@@ -133,10 +108,6 @@ test('Import multiple geojson files sequentially', async ({ page }) => {
133108
test('Import rejects invalid file type', async ({ page }) => {
134109
await page.goto('/');
135110
await page.locator('app-aoi-filter').getByText('arrow_drop_down').click();
136-
await page
137-
.locator('app-aoi-filter')
138-
.getByRole('button', { name: 'Import File' })
139-
.click();
140111

141112
await page
142113
.locator('app-aoi-filter')

e2e/geographic/geojson.spec.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,6 @@ import { test, expect } from '@playwright/test';
33
test('Import a geojson file', async ({ page }) => {
44
await page.goto('/');
55
await page.locator('app-aoi-filter').getByText('arrow_drop_down').click();
6-
await page
7-
.locator('app-aoi-filter')
8-
.getByRole('button', { name: 'Import File' })
9-
.click();
106

117
await page
128
.locator('app-aoi-filter')

0 commit comments

Comments
 (0)