Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix background color style #2326

Merged
merged 37 commits into from
Aug 11, 2023
Merged
Show file tree
Hide file tree
Changes from 34 commits
Commits
Show all changes
37 commits
Select commit Hold shift + click to select a range
76473fa
fix style
Jul 18, 2023
a706717
fix style
Jul 18, 2023
3fa49f7
del redundant
Jul 18, 2023
4a9c66a
Merge branch 'master' into 2301
JerryWu1234 Jul 18, 2023
b2a5787
Merge branch 'master' into 2301
JerryWu1234 Jul 18, 2023
6f88075
fix
Jul 19, 2023
ba8f0e2
Merge branch '2301' of https://github.com/JerryWu1234/mui-toolpad int…
Jul 19, 2023
b597afe
fix
Jul 19, 2023
40084e6
fix
Jul 19, 2023
dafcdae
Delete .gitignore
JerryWu1234 Jul 19, 2023
0f19718
Delete page.yml
JerryWu1234 Jul 19, 2023
e7dc8fb
fix
Jul 19, 2023
2a6d12c
Update page.yml
JerryWu1234 Jul 19, 2023
912ce42
Update page.yml
JerryWu1234 Jul 19, 2023
78ba4b0
Merge branch 'master' into 2301
JerryWu1234 Jul 20, 2023
90e0e2c
fix
Jul 20, 2023
e3e5a8c
Merge branch '2301' of https://github.com/JerryWu1234/mui-toolpad int…
Jul 20, 2023
74cca3c
fix
Jul 20, 2023
81c2c65
Merge branch 'master' into 2301
JerryWu1234 Jul 20, 2023
ee5ab2b
Merge branch 'master' into 2301
JerryWu1234 Jul 21, 2023
7402a74
fix
Jul 21, 2023
8036881
add test
Jul 21, 2023
a9ccd75
Merge branch 'master' into 2301
JerryWu1234 Jul 21, 2023
804bfbc
Merge branch 'master' into 2301
JerryWu1234 Jul 22, 2023
c746bad
Merge branch 'master' into 2301
JerryWu1234 Jul 23, 2023
1abe1e8
fix test
Jul 24, 2023
0e168ba
Merge branch '2301' of https://github.com/JerryWu1234/mui-toolpad int…
Jul 24, 2023
17fd275
Merge branch 'master' into 2301
JerryWu1234 Jul 24, 2023
1b8ecb5
Merge branch 'master' into 2301
apedroferreira Jul 25, 2023
f82e308
Merge branch 'master' into 2301
JerryWu1234 Jul 26, 2023
7166782
Update index.spec.ts
JerryWu1234 Jul 29, 2023
9027e9c
Merge branch 'master' into 2301
JerryWu1234 Jul 31, 2023
22e1912
fix test
Jul 31, 2023
92a75c2
fix
Jul 31, 2023
3518955
fix
Aug 1, 2023
b09db12
merge
Aug 2, 2023
f5be803
fix
Aug 2, 2023
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
2 changes: 1 addition & 1 deletion packages/toolpad-app/src/PinholeOverlay.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const PinholeOverlayRoot = styled('div')({
right: 0,
bottom: 0,
background: '#000',
opacity: 0.03,
opacity: 0,
},
});

Expand Down
15 changes: 15 additions & 0 deletions test/integration/editor/index.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -192,3 +192,18 @@ test('code editor auto-complete', async ({ page }) => {
await page.keyboard.type('textF');
await expect(page.getByRole('option', { name: 'textField' })).toBeVisible();
});

test('must deselect selected element when clicking outside of it', async ({ page }) => {
const editorModel = new ToolpadEditor(page);

await editorModel.goToPageById('K7SkzhT');

await editorModel.waitForOverlay();
const nodeHudTag = editorModel.appCanvas.getByTestId('node-hud-tag');
JerryWu1234 marked this conversation as resolved.
Show resolved Hide resolved
const input = editorModel.appCanvas.locator('input:nth-child(1)');
JerryWu1234 marked this conversation as resolved.
Show resolved Hide resolved
JerryWu1234 marked this conversation as resolved.
Show resolved Hide resolved
const boundingBox = await input.boundingBox();
await clickCenter(page, input);
await expect(nodeHudTag).toBeVisible();
await page.mouse.click(boundingBox!.x + 150, boundingBox!.y + 150);
await expect(nodeHudTag).toBeHidden();
});