Skip to content

Commit

Permalink
a
Browse files Browse the repository at this point in the history
  • Loading branch information
theosanderson committed Oct 12, 2023
1 parent efec2aa commit 9382557
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 28 deletions.
28 changes: 0 additions & 28 deletions .github/workflows/frontend-test.yml

This file was deleted.

17 changes: 17 additions & 0 deletions .github/workflows/integration_test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@

name: Integration Test

on:
repository_dispatch:
workflow_dispatch:
push:
pull_request:
branches: [master]
schedule:
- cron: "0 0 * * *"
jobs:
build:
uses: ./.github/workflows/frontend-test.yml
python:
uses: ./.github/workflows/playwright.yml
needs: [python]
24 changes: 24 additions & 0 deletions taxonium_website/e2e/test-2.spec.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
import { test, expect } from '@playwright/test';

test('test', async ({ page }) => {
await page.goto('http://localhost:4173/');
await page.locator('input[type="file"]').click();
await page.locator('input[type="file"]').setInputFiles('../../data/tfci-taxonium-chron.jsonl');
await page.locator('input[name="treenomeEnabled"]').check();
await page.locator('input[name="treenomeEnabled"]').uncheck();
await page.getByLabel('Tree type:DistanceTime').selectOption('x_time');
await page.getByLabel('Tree type:DistanceTime').selectOption('x_dist');
await page.getByRole('textbox').click();
await page.getByRole('textbox').fill('TFCI');
await page.locator('#view-main').click();
await page.locator('#view-main').click();
await page.locator('#view-main').click();
await page.getByRole('button', { name: 'Zoom in vertically' }).click();
await page.getByRole('button', { name: 'Zoom in horizontally' }).click();
await page.getByRole('button', { name: 'Zoom out vertically' }).click();
await page.getByRole('button', { name: 'Zoom out horizontally' }).click();
await page.getByRole('button', { name: 'Settings' }).click();
await page.getByRole('tab', { name: 'Appearance' }).click();
await page.getByRole('tab', { name: 'Search' }).click();
await page.getByRole('tab', { name: 'Appearance' }).click();
});

0 comments on commit 9382557

Please sign in to comment.