Skip to content
This repository has been archived by the owner on Apr 14, 2023. It is now read-only.

Commit

Permalink
Update publish.mjs
Browse files Browse the repository at this point in the history
  • Loading branch information
pengx17 committed Jan 16, 2022
1 parent d28cccb commit cdce58f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions publish.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,11 @@ async function main() {
"text=This is a demo graph, changes will not be saved until you open a local folder"
);

await page.waitForSelector(':has-text("Loading")', {
state: "hidden",
timeout: 1000 * 15,
});

// set next open directory
page.evaluate(
([graphPath]) => {
Expand Down

1 comment on commit cdce58f

@pengx17
Copy link
Owner Author

Choose a reason for hiding this comment

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

hmm, I guess this check could fail if the user's front page contains a block with text "loading"?

Please sign in to comment.