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

[runtime] hide queries in the browser #1155

Merged
merged 12 commits into from
Oct 17, 2022
Merged

[runtime] hide queries in the browser #1155

merged 12 commits into from
Oct 17, 2022

Conversation

Janpot
Copy link
Member

@Janpot Janpot commented Oct 13, 2022

Fixes #1052

@apedroferreira had a bit of trouble with the propControls test. I refactored the locators to be a bit more stable

@render
Copy link

render bot commented Oct 13, 2022

@oliviertassinari oliviertassinari requested a deployment to WANG-hide-query - toolpad-db PR #1155 October 13, 2022 16:07 — with Render Abandoned
@Janpot Janpot marked this pull request as ready for review October 15, 2022 15:06
@Janpot Janpot requested a review from apedroferreira October 15, 2022 15:07
await editorModel.componentEditor.waitFor();
await editorModel.componentEditor.waitFor({ state: 'visible' });

const labelControlInput = editorModel.componentEditor.getByLabel('label', { exact: true });
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i guess i hadn't found this selector that gets the input for a label? seems pretty useful

await labelControlInputLocator.fill(TEST_VALUE_2);

await expect(firstInputLabelLocator).toHaveText(TEST_VALUE_2);
await inputByLabel.waitFor({ state: 'visible' });
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So we're not checking if the value in the label matches in the end anymore? Was there any issue with that?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes we are, if the value doesn't match this selector wouldn't locate elements

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oh it checks with that value already, i missed that. looks good then!

Copy link
Member

@apedroferreira apedroferreira left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for improving that test, it's definitely an improvement!
I was waiting to see if it was still flaky or if the issue that made it flaky was unrelated, it was seeming a bit less flaky lately.

Just left a question about one of the changes to the test.

@Janpot Janpot merged commit 1b2bbfd into master Oct 17, 2022
@Janpot Janpot deleted the WANG-hide-query branch October 17, 2022 14:52
@zannager zannager added Toolpad scope: toolpad-studio Abbreviated to "studio" labels Nov 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
scope: toolpad-studio Abbreviated to "studio" Toolpad
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Should't show query content to client
4 participants