1
0
mirror of https://github.com/konpa/devicon.git synced 2025-08-30 09:40:04 +02:00

Add screenshot code, update the CONTRIBUTING.md and fix clojure

This commit is contained in:
Thomas Bui
2020-10-11 20:19:41 -07:00
parent 0fe65a0f3a
commit e6cb7bb3fd
5 changed files with 22 additions and 6 deletions

View File

@@ -130,6 +130,8 @@ class SeleniumRunner:
self.test_for_possible_alert(self.SHORT_WAIT_IN_SEC, "Dismiss")
self.remove_color_from_icon()
# take a screenshot of the icons that were just added
self.driver.save_screenshot("new_icons.png");
self.click_hamburger_input()
select_all_button = WebDriverWait(self.driver, self.LONG_WAIT_IN_SEC).until(
ec.element_to_be_clickable((By.XPATH, "//button[text()='Select All']"))

View File

@@ -27,10 +27,16 @@ jobs:
./icomoon.json ./devicon.json ./icons ./ --headless
- name: Upload geckodriver.log for debugging purposes
uses: actions/upload-artifact@v2
if: ${{always()}}
if: ${{failure()}}
with:
name: geckodriver-log
path: ./geckodriver.log
- name: Upload screenshot of the newly made icons
uses: actions/upload-artifact@v2
if: ${{success()}}
with:
name: new_icons
path: ./.github/scripts/new_icons.png
- name: Running npm task for building devicon.min.css
if: ${{ success() }}
run: npm run build-css