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

Added comments and script now fail if can't find icon name

This commit is contained in:
Thomas Bui
2020-12-30 10:57:06 -08:00
parent a9eb51aca5
commit a84cd46a9f
3 changed files with 43 additions and 6 deletions

View File

@@ -227,6 +227,10 @@ class SeleniumRunner:
def remove_color_from_icon(self):
"""
Remove the color from the most recent uploaded icon.
This is because some SVG have colors in them and we don't want to
force contributors to remove them in case people want the colored SVGs.
The color removal is also necessary so that the Icomoon-generated
icons fit within one font symbol/ligiature.
"""
color_tab = WebDriverWait(self.driver, self.SHORT_WAIT_IN_SEC).until(
ec.element_to_be_clickable((By.CSS_SELECTOR, "div.overlayWindow i.icon-droplet"))