resolve todos
This commit is contained in:
@@ -112,7 +112,6 @@ test.describe('Edges', () => {
|
||||
await page.mouse.down();
|
||||
await page.mouse.up();
|
||||
|
||||
// TODO: times out on webkit
|
||||
await expect(edge).toHaveClass(/selected/);
|
||||
|
||||
await page.keyboard.press('d');
|
||||
@@ -139,12 +138,10 @@ test.describe('Edges', () => {
|
||||
|
||||
const edgeBox = await edge.boundingBox();
|
||||
|
||||
//FIXME: Negative values are not working. Investigate further
|
||||
await page.mouse.move(edgeBox!.x + edgeBox!.width * 0.5 + 21, edgeBox!.y + edgeBox!.height * 0.5);
|
||||
await page.mouse.down();
|
||||
await page.mouse.up();
|
||||
|
||||
// TODO: times out on webkit
|
||||
await expect(edge).toHaveClass(/selected/);
|
||||
});
|
||||
|
||||
|
||||
@@ -145,7 +145,6 @@ test.describe('Nodes', () => {
|
||||
expect(edges).toHaveLength(0);
|
||||
});
|
||||
|
||||
// TODO: pressing backspace creates problems on webkit
|
||||
test('deletable=false prevents deletion', async ({ page }) => {
|
||||
const node = page.locator(`.${FRAMEWORK}-flow__node`).and(page.locator('[data-id="notDeletable"]'));
|
||||
await expect(node).toHaveCSS('visibility', 'visible');
|
||||
@@ -153,6 +152,7 @@ test.describe('Nodes', () => {
|
||||
await expect(node).toBeAttached();
|
||||
|
||||
await node.click();
|
||||
// pressing backspace breaks webkit
|
||||
await page.keyboard.press('d');
|
||||
|
||||
await expect(node).toBeAttached();
|
||||
@@ -198,8 +198,8 @@ test.describe('Nodes', () => {
|
||||
await firstOutputHandle.hover();
|
||||
await page.mouse.down();
|
||||
|
||||
// TODO: Does not work in SvelteFlow for whatever reason!?
|
||||
// await secondOutputHandle.hover();
|
||||
// Does not work in SvelteFlow for whatever reason!?
|
||||
// but the following works...
|
||||
const box = await secondOutputHandle.boundingBox();
|
||||
await page.mouse.move(box!.x + 2, box!.y + 2);
|
||||
@@ -229,8 +229,8 @@ test.describe('Nodes', () => {
|
||||
await firstInputHandle.hover();
|
||||
await page.mouse.down();
|
||||
|
||||
// TODO: Does not work in SvelteFlow for whatever reason!?
|
||||
// await secondInputHandle.hover();
|
||||
// Does not work in SvelteFlow for whatever reason!?
|
||||
// but the following works...
|
||||
const box = await secondInputHandle.boundingBox();
|
||||
await page.mouse.move(box!.x + 2, box!.y + 2);
|
||||
|
||||
@@ -172,13 +172,12 @@ test.describe('Pane non-default', () => {
|
||||
});
|
||||
});
|
||||
|
||||
test.describe('Pane activation keys', () => {
|
||||
test.beforeEach(async ({ page }) => {
|
||||
// Go to the starting url before each test.
|
||||
await page.goto('/tests/generic/pane/activation-keys');
|
||||
// test.describe('Pane activation keys', () => {
|
||||
// test.beforeEach(async ({ page }) => {
|
||||
// // Go to the starting url before each test.
|
||||
// await page.goto('/tests/generic/pane/activation-keys');
|
||||
|
||||
// Wait till the edges are rendered
|
||||
await page.waitForSelector('[data-id="first-edge"]', { timeout: 5000 });
|
||||
});
|
||||
// TODO
|
||||
});
|
||||
// // Wait till the edges are rendered
|
||||
// await page.waitForSelector('[data-id="first-edge"]', { timeout: 5000 });
|
||||
// });
|
||||
// });
|
||||
|
||||
Reference in New Issue
Block a user