ported all test cases from svelte to react

This commit is contained in:
Peter
2023-11-07 16:31:49 +01:00
parent 8be0337e00
commit 9551ebc0f3
9 changed files with 198 additions and 8 deletions

View File

@@ -13,7 +13,7 @@ test.describe('EDGES', () => {
test.describe('selection', () => {
test('selecting an edge by click', async ({ page }) => {
const edge = page.locator('.svelte-flow__edge').and(page.locator('[data-id="edge-with-class"]'));
const edge = page.locator(`${FRAMEWORK}.-flow__edge`).and(page.locator('[data-id="edge-with-class"]'));
await expect(edge).toBeAttached();
await edge.click();

View File

@@ -122,7 +122,7 @@ test.describe('PANE DEFAULT', () => {
test('autoPanOnConnect works as intended', async ({ page }) => {
const viewport = page.locator(`.${FRAMEWORK}-flow__viewport`);
const handle = page.locator('[data-id="1"] .svelte-flow__handle');
const handle = page.locator(`[data-id="1"] .${FRAMEWORK}-flow__handle`);
await expect(handle).toBeAttached();