Skip to content

Commit 8233407

Browse files
committed
Merge branch 'main' into copilot/fix-safari-native-element-extension
2 parents 622f286 + 52cd30b commit 8233407

File tree

3 files changed

+15
-8
lines changed

3 files changed

+15
-8
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,4 +74,4 @@ jobs:
7474
- uses: codecov/codecov-action@v5
7575
with:
7676
token: ${{ secrets.CODECOV_TOKEN }}
77-
flags: selenium
77+
flags: selenium-${{ matrix.os }}

pyproject.toml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,12 +65,19 @@ write_to = "s3file/_version.py"
6565

6666
[tool.pytest.ini_options]
6767
minversion = "6.0"
68-
addopts = "--cov=s3file --tb=short -rxs"
68+
addopts = "--cov --cov-report=xml --cov-report=term --tb=short -rxs"
6969
testpaths = [
7070
"tests",
7171
]
7272
DJANGO_SETTINGS_MODULE = "tests.testapp.settings"
7373

74+
[tool.coverage.run]
75+
source = ["s3file"]
76+
77+
[tool.coverage.report]
78+
show_missing = true
79+
skip_covered = true
80+
7481
[tool.ruff]
7582
src = ["s3file", "tests"]
7683
line-length = 88

tests/test_forms.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ def test_file_insert(
202202
file_input = driver.find_element(By.XPATH, "//input[@type='file']")
203203
file_input.send_keys(upload_file)
204204
assert file_input.get_attribute("name") == ""
205-
with wait_for_page_load(driver, timeout=10):
205+
with wait_for_page_load(driver, timeout=30):
206206
file_input.submit()
207207
assert storage.exists(f"tmp/s3file/{request.node.name}.txt")
208208

@@ -223,7 +223,7 @@ def test_file_update(
223223
file_input = driver.find_element(By.XPATH, "//input[@type='file']")
224224
file_input.send_keys(upload_file)
225225
assert file_input.get_attribute("name") == ""
226-
with wait_for_page_load(driver, timeout=10):
226+
with wait_for_page_load(driver, timeout=30):
227227
file_input.submit()
228228
assert storage.exists(f"tmp/s3file/{request.node.name}.txt")
229229

@@ -240,7 +240,7 @@ def test_file_insert_submit_value(
240240
file_input.send_keys(upload_file)
241241
assert file_input.get_attribute("name") == ""
242242
save_button = driver.find_element(By.XPATH, "//button[@name='save_continue']")
243-
with wait_for_page_load(driver, timeout=10):
243+
with wait_for_page_load(driver, timeout=30):
244244
save_button.click()
245245
assert "save_continue" in driver.page_source
246246
assert "continue_value" in driver.page_source
@@ -254,7 +254,7 @@ def test_file_insert_submit_formaction(
254254
file_input.send_keys(upload_file)
255255
assert file_input.get_attribute("name") == ""
256256
save_button = driver.find_element(By.XPATH, "//button[@name='custom_save']")
257-
with wait_for_page_load(driver, timeout=10):
257+
with wait_for_page_load(driver, timeout=30):
258258
save_button.click()
259259
assert "custom_save" in driver.page_source
260260
assert "custom_target" in driver.page_source
@@ -275,7 +275,7 @@ def test_file_insert_change_event(
275275
file_input.send_keys(upload_file)
276276
file_input.send_keys(another_upload_file)
277277
save_button = driver.find_element(By.CSS_SELECTOR, "input[name=save]")
278-
with wait_for_page_load(driver, timeout=10):
278+
with wait_for_page_load(driver, timeout=30):
279279
save_button.click()
280280
assert "save" in driver.page_source
281281

@@ -302,7 +302,7 @@ def test_multi_file(
302302
)
303303
file_input.send_keys(str(freeze_upload_folder / yet_another_upload_file))
304304
save_button = driver.find_element(By.XPATH, "//input[@name='save']")
305-
with wait_for_page_load(driver, timeout=10):
305+
with wait_for_page_load(driver, timeout=30):
306306
save_button.click()
307307
response = json.loads(driver.find_elements(By.CSS_SELECTOR, "pre")[0].text)
308308
assert response["FILES"] == {

0 commit comments

Comments
 (0)