mirror of
https://github.com/microsoft/playwright.git
synced 2024-10-27 13:50:25 +03:00
chore: fix ui mode tests on windows (#23553)
This commit is contained in:
parent
85be65b07b
commit
037da65d83
@ -95,6 +95,7 @@ export const UIModeView: React.FC<{}> = ({
|
||||
|
||||
React.useEffect(() => {
|
||||
inputRef.current?.focus();
|
||||
setIsLoading(true);
|
||||
initWebSocket(() => setIsDisconnected(true)).then(() => reloadTests());
|
||||
}, [reloadTests]);
|
||||
|
||||
@ -403,7 +404,7 @@ const TestList: React.FC<{
|
||||
|
||||
// Update watch all.
|
||||
React.useEffect(() => {
|
||||
if (!testModel.rootSuite)
|
||||
if (isLoading)
|
||||
return;
|
||||
if (watchAll) {
|
||||
sendMessageNoReply('watch', { fileNames: [...fileNames] });
|
||||
@ -417,7 +418,7 @@ const TestList: React.FC<{
|
||||
}
|
||||
sendMessageNoReply('watch', { fileNames: [...fileNames] });
|
||||
}
|
||||
}, [testModel, rootItem, fileNames, watchAll, watchedTreeIds, treeItemMap]);
|
||||
}, [isLoading, rootItem, fileNames, watchAll, watchedTreeIds, treeItemMap]);
|
||||
|
||||
const runTreeItem = (treeItem: TreeItem) => {
|
||||
setSelectedTreeItemId(treeItem.id);
|
||||
|
Loading…
Reference in New Issue
Block a user