1
0
mirror of https://github.com/konpa/devicon.git synced 2025-08-12 01:24:42 +02:00

Changed to select all rather before take a pic (#1058)

This commit is contained in:
Thomas Bui
2022-03-13 16:43:38 -07:00
committed by GitHub
parent bb589370da
commit 47a19322a1

View File

@@ -92,7 +92,7 @@ class BuildSeleniumRunner(SeleniumRunner):
# take a screenshot of the svgs that were just added # take a screenshot of the svgs that were just added
# select the latest icons # select the latest icons
self.switch_toolbar_option(IcomoonOptionState.SELECT) self.switch_toolbar_option(IcomoonOptionState.SELECT)
self.click_latest_icons_in_top_set(len(svgs)) self.select_all_icons_in_top_set()
new_svgs_path = str(Path(screenshot_folder, "new_svgs.png").resolve()) new_svgs_path = str(Path(screenshot_folder, "new_svgs.png").resolve())
self.driver.save_screenshot(new_svgs_path); self.driver.save_screenshot(new_svgs_path);