Skip to content

Commit

Permalink
update the test workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Dou Du committed Jun 16, 2024
1 parent 9145f20 commit 16dac77
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions test/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ class test_widget():
def setup_method(self, method):
options = Options()
cwd = os.getcwd()
options.add_argument("--headless")
options.add_argument("--window-size=1280x1500")
options.add_experimental_option("prefs", {"download.default_directory": cwd})
self.driver = webdriver.Chrome(options=options)
self.vars = {}
Expand All @@ -25,7 +27,7 @@ def teardown_method(self, method):

def test_elements(self):
self.driver.get("http://localhost:8383/voila/render/example.ipynb")
self.driver.set_window_size(1280, 1080)
#self.driver.set_window_size(1280, 1080)
time.sleep(3)

try:
Expand All @@ -36,7 +38,7 @@ def test_elements(self):

def download_widget_image(self):
self.driver.get("http://localhost:8383/voila/render/example.ipynb")
self.driver.set_window_size(1280, 2000)
#self.driver.set_window_size(1280, 2000)
time.sleep(3)
self.driver.save_screenshot("widget-01.png")

Expand Down
Binary file modified test/widget-sample.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 16dac77

Please sign in to comment.