implemented generic tests for config based test flow creation
This commit is contained in:
@@ -5,7 +5,7 @@ import { FRAMEWORK } from './constants';
|
|||||||
test.describe('EDGES', () => {
|
test.describe('EDGES', () => {
|
||||||
test.beforeEach(async ({ page }) => {
|
test.beforeEach(async ({ page }) => {
|
||||||
// Go to the starting url before each test.
|
// Go to the starting url before each test.
|
||||||
await page.goto('/tests/edges');
|
await page.goto('/tests/generic/edges/general');
|
||||||
|
|
||||||
// Timeout get's ignored and tests timeout after 200ms ???
|
// Timeout get's ignored and tests timeout after 200ms ???
|
||||||
// page.waitForSelector('[data-id="edge-with-class"]', { timeout: 5000 });
|
// page.waitForSelector('[data-id="edge-with-class"]', { timeout: 5000 });
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ import { FRAMEWORK } from './constants';
|
|||||||
test.describe('NODES', () => {
|
test.describe('NODES', () => {
|
||||||
test.beforeEach(async ({ page }) => {
|
test.beforeEach(async ({ page }) => {
|
||||||
// Go to the starting url before each test.
|
// Go to the starting url before each test.
|
||||||
await page.goto('/tests/nodes');
|
await page.goto('/tests/generic/nodes/general');
|
||||||
});
|
});
|
||||||
|
|
||||||
test.describe('selection', () => {
|
test.describe('selection', () => {
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
import { test, expect } from '@playwright/test';
|
import { test, expect } from '@playwright/test';
|
||||||
|
|
||||||
import { FRAMEWORK } from './constants';
|
import { FRAMEWORK } from './constants';
|
||||||
import { transform } from 'typescript';
|
|
||||||
|
|
||||||
const MATCH_ALL_NUMBERS = /[\d\.]+/g;
|
const MATCH_ALL_NUMBERS = /[\d\.]+/g;
|
||||||
|
|
||||||
@@ -23,7 +22,7 @@ async function getTransform(element) {
|
|||||||
test.describe('PANE DEFAULT', () => {
|
test.describe('PANE DEFAULT', () => {
|
||||||
test.beforeEach(async ({ page }) => {
|
test.beforeEach(async ({ page }) => {
|
||||||
// Go to the starting url before each test.
|
// Go to the starting url before each test.
|
||||||
await page.goto('/tests/pane/default');
|
await page.goto('/tests/generic/pane/general');
|
||||||
|
|
||||||
// Wait till the edges are rendered
|
// Wait till the edges are rendered
|
||||||
await page.waitForSelector('#first-edge', { timeout: 5000 });
|
await page.waitForSelector('#first-edge', { timeout: 5000 });
|
||||||
@@ -146,7 +145,7 @@ test.describe('PANE DEFAULT', () => {
|
|||||||
test.describe('PANE NON-DEFAULT', () => {
|
test.describe('PANE NON-DEFAULT', () => {
|
||||||
test.beforeEach(async ({ page }) => {
|
test.beforeEach(async ({ page }) => {
|
||||||
// Go to the starting url before each test.
|
// Go to the starting url before each test.
|
||||||
await page.goto('/tests/pane/non-default');
|
await page.goto('/tests/generic/pane/non-defaults');
|
||||||
|
|
||||||
// Wait till the edges are rendered
|
// Wait till the edges are rendered
|
||||||
await page.waitForSelector('#first-edge', { timeout: 5000 });
|
await page.waitForSelector('#first-edge', { timeout: 5000 });
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { defineConfig, devices } from '@playwright/test';
|
import { defineConfig } from '@playwright/test';
|
||||||
import { sharedConfigWithPort } from './playwright.shared.config';
|
import { sharedConfigWithPort } from './playwright.shared.config';
|
||||||
|
|
||||||
const port = 5173;
|
const port = 5173;
|
||||||
@@ -6,7 +6,7 @@ const port = 5173;
|
|||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
...sharedConfigWithPort(port),
|
...sharedConfigWithPort(port),
|
||||||
webServer: {
|
webServer: {
|
||||||
command: 'cd ../../examples/svelte && pnpm run dev',
|
command: 'cd ../../examples/svelte && pnpm run dev --port 5173',
|
||||||
port: port,
|
port: port,
|
||||||
reuseExistingServer: !process.env.CI,
|
reuseExistingServer: !process.env.CI,
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user