Skip to content

Commit 0878630

Browse files
committed
fix to CI
1 parent 60191e9 commit 0878630

File tree

3 files changed

+7
-19
lines changed

3 files changed

+7
-19
lines changed

.github/workflows/main.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88
test:
99
runs-on: ubuntu-latest
1010
steps:
11-
- uses: actions/checkout@v3
11+
- uses: actions/checkout@v4
1212
name: Check out repository
1313
- name: Set up Python
1414
uses: actions/setup-python@v4
@@ -18,10 +18,11 @@ jobs:
1818
run: |
1919
python -m pip install --upgrade pip
2020
pip install -r requirements.txt
21-
pip install pytest-cov # Agregado para coverage
21+
pip install pytest-cov # Para coverage
22+
pip install webdriver-manager # Para ambos browsers (Firefox + Edge)
2223
- name: Install GeckoDriver
2324
run: |
24-
python -m pip install webdriver-manager
25+
python -m pip install webdriver-manager # Ya cubierto arriba, pero legacy
2526
- name: Install Allure
2627
run: |
2728
wget https://github.com/allure-framework/allure2/releases/download/2.25.0/allure-2.25.0.zip
@@ -57,7 +58,7 @@ jobs:
5758
env:
5859
PYTHONPATH: .
5960
run: |
60-
pytest test/ --cov=pages --cov-report=xml:coverage.xml --cov-report=html:htmlcov
61+
pytest test/ --cov=pages --cov-report=xml:coverage.xml --cov-report=html:htmlcov -v
6162
- name: Upload Coverage HTML report
6263
uses: actions/upload-artifact@v4
6364
with:

README.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,4 @@ Questions? Open an issue.
7676
![html report.png](docs/html%20report.png)
7777
![Screenshot 2025-09-29 145456.png](docs/Screenshot%202025-09-29%20145456.png)
7878
Built by Jerry Finol | Last Updated: September 29, 2025
79-
[Coverage](https://codecov.io/gh/jerryfinol17/Automated-testing-project/branch/main/graph/badge.svg)
80-
8179

test/conftest.py

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
from selenium.webdriver.firefox.options import Options as FirefoxOptions
77
from selenium.webdriver.edge.options import Options as EdgeOptions
88
from webdriver_manager.firefox import GeckoDriverManager
9+
from webdriver_manager.microsoft import EdgeChromiumDriverManager
910
import allure
1011

1112

@@ -49,9 +50,7 @@ def browser_driver(request):
4950
options=firefox_options
5051
)
5152

52-
5353
elif browser_name == "edge":
54-
5554
edge_options = EdgeOptions()
5655

5756
edge_options.add_argument("--disable-notifications")
@@ -80,19 +79,9 @@ def browser_driver(request):
8079

8180
edge_options.add_experimental_option("excludeSwitches", ["enable-automation"])
8281

83-
# Ruta completa al .exe – ajusta si tu versión es diferente
84-
85-
driver_path = r"C:\Users\dhamyan\PycharmProjects\drivers\edgedriver_win64\msedgedriver.exe"
86-
87-
if not os.path.exists(driver_path):
88-
raise FileNotFoundError(f"msedgedriver.exe no encontrado en {driver_path}. Verifica la extracción del ZIP.")
89-
9082
driver = webdriver.Edge(
91-
92-
service=EdgeService(executable_path=driver_path),
93-
83+
service=EdgeService(EdgeChromiumDriverManager().install()),
9484
options=edge_options
95-
9685
)
9786

9887
def fin():

0 commit comments

Comments
 (0)