-
-
Notifications
You must be signed in to change notification settings - Fork 498
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4e2074d
commit c4a8340
Showing
3 changed files
with
51 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
import time | ||
|
||
import pytest | ||
|
||
try: | ||
from playwright.sync_api import expect | ||
except ImportError: | ||
pytestmark = pytest.mark.skip('playwright not available') | ||
|
||
from panel.config import config | ||
from panel.io.server import serve | ||
from panel.pane import Markdown | ||
|
||
pytestmark = pytest.mark.ui | ||
|
||
def test_global_loading_indicator(page, port): | ||
def app(): | ||
config.global_loading_spinner = True | ||
return Markdown('Blah') | ||
|
||
serve(app, port=port, threaded=True, show=False) | ||
|
||
time.sleep(0.5) | ||
|
||
page.goto(f"http://localhost:{port}") | ||
|
||
expect(page.locator("body")).not_to_have_class('pn-loading') |