Skip to content

Commit

Permalink
Update UI test
Browse files Browse the repository at this point in the history
  • Loading branch information
trungleduc committed Oct 25, 2024
1 parent 35472aa commit 166aec7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
6 changes: 6 additions & 0 deletions packages/base/src/commands.ts
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,12 @@ export async function executeOperator(
sharedModel.transact(() => {
transaction(sharedModel);
});
setTimeout(() => {
current.context.model.syncSelected(
{ [objectModel.name]: { type: 'shape' } },
uuid()
);
}, 0); // doing the selection at the next tick
}

const OPERATORS = {
Expand Down
5 changes: 0 additions & 5 deletions ui-tests/tests/ui.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -203,10 +203,6 @@ test.describe('UI Test', () => {
.locator('[data-test-id="react-tree-root"]')
.getByText('box2')
.click();
await page
.locator('[data-test-id="react-tree-root"]')
.getByText('Shape')
.click();
await page.getByLabel('Height*').click();
await page.getByLabel('Height*').fill('32');
await page.getByRole('button', { name: 'Submit' }).click();
Expand Down Expand Up @@ -310,7 +306,6 @@ test.describe('UI Test', () => {
await page.getByTitle('New Box').getByRole('button').click();
await page.getByRole('button', { name: 'Submit' }).click();
await page.waitForTimeout(1000);
await page.getByText('Box 1').click();
await page.locator('#tab-key-1-6').click();

await page.waitForTimeout(1000);
Expand Down

0 comments on commit 166aec7

Please sign in to comment.