Skip to content

Commit

Permalink
Nowy workflow, cz6 (screenshot) - poprawki
Browse files Browse the repository at this point in the history
  • Loading branch information
wojtaszczyk committed Aug 9, 2024
1 parent a4a6407 commit b3e00d8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/ci-selenium.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@
run: |
python -m pip install --upgrade pip
pip install -r wymagania.txt
- name: Create screenshot directory
run: |
mkdir screenshot
- name: Run tests
env:
SELENIUM_REMOTE_URL: http://localhost:4444/wd/hub
Expand All @@ -37,4 +41,4 @@
uses: actions/upload-artifact@v4
with:
name: screenshot
path: tests
path: screenshot
2 changes: 1 addition & 1 deletion tests/test_selenium.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def setUp(self):
def test_title(self):
driver = self.driver
driver.get("http://demo-store.seleniumacademy.com/"),
driver.save_screenshot("test.png")
driver.save_screenshot("screenshot/test.png")

def tearDown(self):
self.driver.close()
Expand Down

0 comments on commit b3e00d8

Please sign in to comment.