Skip to content

Commit 78838df

Browse files
committed
fix to CI
1 parent 0878630 commit 78838df

File tree

2 files changed

+6
-23
lines changed

2 files changed

+6
-23
lines changed

test/conftest.py

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,9 @@
22
import os
33
from selenium import webdriver
44
from selenium.webdriver.firefox.service import Service as FirefoxService
5-
from selenium.webdriver.edge.service import Service as EdgeService
65
from selenium.webdriver.firefox.options import Options as FirefoxOptions
76
from selenium.webdriver.edge.options import Options as EdgeOptions
87
from webdriver_manager.firefox import GeckoDriverManager
9-
from webdriver_manager.microsoft import EdgeChromiumDriverManager
108
import allure
119

1210

@@ -54,36 +52,21 @@ def browser_driver(request):
5452
edge_options = EdgeOptions()
5553

5654
edge_options.add_argument("--disable-notifications")
57-
5855
edge_options.add_argument("--disable-popup-blocking")
59-
6056
edge_options.add_argument("--headless")
61-
6257
edge_options.add_argument("--disable-blink-features=AutomationControlled")
63-
6458
edge_options.add_argument("--no-sandbox")
65-
6659
edge_options.add_argument("--disable-dev-shm-usage")
6760

6861
prefs = {
69-
7062
"profile.password_manager_enabled": False,
71-
7263
"credentials_enable_service": False,
73-
7464
"profile.default_content_setting_values.notifications": 2,
75-
7665
}
7766

7867
edge_options.add_experimental_option("prefs", prefs)
79-
8068
edge_options.add_experimental_option("excludeSwitches", ["enable-automation"])
81-
82-
driver = webdriver.Edge(
83-
service=EdgeService(EdgeChromiumDriverManager().install()),
84-
options=edge_options
85-
)
86-
69+
driver = webdriver.Edge(options=edge_options)
8770
def fin():
8871
if driver:
8972
try:

test/reports/report.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,7 @@
328328
</head>
329329
<body>
330330
<h1 id="title">report.html</h1>
331-
<p>Report generated on 06-Oct-2025 at 14:30:17 by <a href="https://pypi.python.org/pypi/pytest-html">pytest-html</a>
331+
<p>Report generated on 06-Oct-2025 at 15:38:27 by <a href="https://pypi.python.org/pypi/pytest-html">pytest-html</a>
332332
v4.1.1</p>
333333
<div id="environment-header">
334334
<h2>Environment</h2>
@@ -382,7 +382,7 @@ <h2>Environment</h2>
382382
<h2>Summary</h2>
383383
<div class="additional-summary prefix">
384384
</div>
385-
<p class="run-count">0 test took 0 ms.</p>
385+
<p class="run-count">1 test took 00:00:54.</p>
386386
<p class="filter">(Un)check the boxes to filter the results.</p>
387387
<div class="summary__reload">
388388
<div class="summary__reload__button hidden" onclick="location.reload()">
@@ -394,8 +394,8 @@ <h2>Summary</h2>
394394
<div class="filters">
395395
<input checked="true" class="filter" name="filter_checkbox" type="checkbox" data-test-result="failed" disabled/>
396396
<span class="failed">0 Failed,</span>
397-
<input checked="true" class="filter" name="filter_checkbox" type="checkbox" data-test-result="passed" disabled/>
398-
<span class="passed">0 Passed,</span>
397+
<input checked="true" class="filter" name="filter_checkbox" type="checkbox" data-test-result="passed" />
398+
<span class="passed">1 Passed,</span>
399399
<input checked="true" class="filter" name="filter_checkbox" type="checkbox" data-test-result="skipped" disabled/>
400400
<span class="skipped">0 Skipped,</span>
401401
<input checked="true" class="filter" name="filter_checkbox" type="checkbox" data-test-result="xfailed" disabled/>
@@ -429,7 +429,7 @@ <h2>Summary</h2>
429429
</table>
430430
</body>
431431
<footer>
432-
<div id="data-container" data-jsonblob="{&#34;environment&#34;: {&#34;Python&#34;: &#34;3.13.5&#34;, &#34;Platform&#34;: &#34;Windows-11-10.0.26100-SP0&#34;, &#34;Packages&#34;: {&#34;pytest&#34;: &#34;8.4.2&#34;, &#34;pluggy&#34;: &#34;1.6.0&#34;}, &#34;Plugins&#34;: {&#34;allure-pytest&#34;: &#34;2.15.0&#34;, &#34;html&#34;: &#34;4.1.1&#34;, &#34;metadata&#34;: &#34;3.1.1&#34;}}, &#34;tests&#34;: {}, &#34;renderCollapsed&#34;: [&#34;passed&#34;], &#34;initialSort&#34;: &#34;result&#34;, &#34;title&#34;: &#34;report.html&#34;}"></div>
432+
<div id="data-container" data-jsonblob="{&#34;environment&#34;: {&#34;Python&#34;: &#34;3.13.5&#34;, &#34;Platform&#34;: &#34;Windows-11-10.0.26100-SP0&#34;, &#34;Packages&#34;: {&#34;pytest&#34;: &#34;8.4.2&#34;, &#34;pluggy&#34;: &#34;1.6.0&#34;}, &#34;Plugins&#34;: {&#34;allure-pytest&#34;: &#34;2.15.0&#34;, &#34;html&#34;: &#34;4.1.1&#34;, &#34;metadata&#34;: &#34;3.1.1&#34;}}, &#34;tests&#34;: {&#34;test_cart.py::test_verify_cart_items[firefox]&#34;: [{&#34;extras&#34;: [], &#34;result&#34;: &#34;Passed&#34;, &#34;testId&#34;: &#34;test_cart.py::test_verify_cart_items[firefox]&#34;, &#34;duration&#34;: &#34;00:00:37&#34;, &#34;resultsTableRow&#34;: [&#34;&lt;td class=\&#34;col-result\&#34;&gt;Passed&lt;/td&gt;&#34;, &#34;&lt;td class=\&#34;col-testId\&#34;&gt;test_cart.py::test_verify_cart_items[firefox]&lt;/td&gt;&#34;, &#34;&lt;td class=\&#34;col-duration\&#34;&gt;00:00:37&lt;/td&gt;&#34;, &#34;&lt;td class=\&#34;col-links\&#34;&gt;&lt;/td&gt;&#34;], &#34;log&#34;: &#34;----------------------------- Captured stdout call -----------------------------\nItems: [&amp;#x27;Sauce Labs Bike Light&amp;#x27;, &amp;#x27;Sauce Labs Backpack&amp;#x27;], Badge: 2\n---------------------------- Captured log teardown -----------------------------\nWARNING urllib3.connectionpool:connectionpool.py:868 Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by &amp;#x27;NewConnectionError(&amp;#x27;&amp;lt;urllib3.connection.HTTPConnection object at 0x000001EE66B75590&amp;gt;: Failed to establish a new connection: [WinError 10061] No connection could be made because the target machine actively refused it&amp;#x27;)&amp;#x27;: /session/bff8fc7a-7bb1-4719-bfd9-3f8e8e602bb4\nWARNING urllib3.connectionpool:connectionpool.py:868 Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by &amp;#x27;NewConnectionError(&amp;#x27;&amp;lt;urllib3.connection.HTTPConnection object at 0x000001EE66B77750&amp;gt;: Failed to establish a new connection: [WinError 10061] No connection could be made because the target machine actively refused it&amp;#x27;)&amp;#x27;: /session/bff8fc7a-7bb1-4719-bfd9-3f8e8e602bb4\nWARNING urllib3.connectionpool:connectionpool.py:868 Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by &amp;#x27;NewConnectionError(&amp;#x27;&amp;lt;urllib3.connection.HTTPConnection object at 0x000001EE66B85220&amp;gt;: Failed to establish a new connection: [WinError 10061] No connection could be made because the target machine actively refused it&amp;#x27;)&amp;#x27;: /session/bff8fc7a-7bb1-4719-bfd9-3f8e8e602bb4&#34;}]}, &#34;renderCollapsed&#34;: [&#34;passed&#34;], &#34;initialSort&#34;: &#34;result&#34;, &#34;title&#34;: &#34;report.html&#34;}"></div>
433433
<script>
434434
(function(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c="function"==typeof require&&require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];return o(n||r)},p,p.exports,r,e,n,t)}return n[i].exports}for(var u="function"==typeof require&&require,i=0;i<t.length;i++)o(t[i]);return o}return r})()({1:[function(require,module,exports){
435435
const { getCollapsedCategory, setCollapsedIds } = require('./storage.js')

0 commit comments

Comments
 (0)