ported all test cases from svelte to react
This commit is contained in:
@@ -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();
|
||||
|
||||
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user