Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
{
"name": "ui-tests",
"version": "0.0.1",
"exports": {
"./e2e-utils": "./tests/e2e/utils.ts"
},
"description": "",
"homepage": "https://github.com/Pometry/ui-tests",
"bugs": {
Expand Down
11 changes: 3 additions & 8 deletions tests/e2e/graph.spec.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { expect, Page } from '@playwright/test';
import { expect } from '@playwright/test';
import { test } from '../fixtures';
import {
changeTab,
Expand All @@ -8,6 +8,7 @@ import {
doubleClickOnNode,
dragSlider,
fillInStyling,
fitView,
getGraphState,
navigateToGraphPageBySearch,
navigateToSavedGraphBySavedGraphsTable,
Expand All @@ -16,13 +17,6 @@ import {
waitForLayoutToFinish,
} from './utils';

async function fitView(page: Page) {
await page
.getByRole('button', { name: 'Fit all nodes within visible region' })
.click();
await waitForLayoutToFinish(page);
}

test('Close right hand side panel button and open again', async ({ page }) => {
await page.goto('/graph/vanilla/event?initialNodes=%5B%5D');

Expand Down Expand Up @@ -863,6 +857,7 @@ test('Comprehensive styling, selection, and highlighting', async ({
test.setTimeout(60000);
await navigateToSavedGraphBySavedGraphsTable(page, 'vanilla', 'persistent');
await fitView(page);
await page.waitForTimeout(1000);

// Save individual node styling for Pedro
await clickOnNode(page, 'Pedro');
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading