Skip to content

Commit b314e68

Browse files
Merge branch 'dev' into 1190-add-tests-for-job-generation-pipeline
2 parents 995e549 + 111cdfa commit b314e68

File tree

4 files changed

+31
-10
lines changed

4 files changed

+31
-10
lines changed

.github/workflows/run_full_test_suite.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ on:
44
pull_request:
55
branches:
66
- dev
7+
paths-ignore:
8+
- '**/*.md'
79

810
jobs:
911
run-tests:

CHANGELOG.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,3 +48,26 @@ For each PR made, an entry should be added to this changelog. It should contain
4848
- Changes:
4949
- Added config_generation/tests/test_config_generation_pipeline.py which tests the config and job generation pipeline, ensuring all components interact correctly
5050
- config_generation/tests/test_db_to_xml.py is updated to include comprehensive tests for XML Processing
51+
52+
- 1001-tests-for-critical-functionalities
53+
- Description: Critical functionalities have been identified and listed, and critical areas lacking tests listed
54+
- Changes:
55+
- Integrated coverage.py as an indicative tool in the workflow for automated coverage reports on PRs, with separate display from test results.
56+
- Introduced docs/architecture-decisions/testing_strategy.md, which includes the coverage report, lists critical areas, and specifically identifies those critical areas that are untested or under-tested.
57+
58+
- 1192-finalize-the-infrastructure-for-frontend-testing
59+
- Description: Set up comprehensive frontend testing infrastructure using Selenium WebDriver with Chrome, establishing a foundation for automated UI testing.
60+
- Changes:
61+
- Added Selenium testing dependency to `requirements/local.txt`
62+
- Updated Dockerfile to support Chrome and ChromeDriver
63+
- Created BaseTestCase and AuthenticationMixin for reusable test components
64+
- Implemented core authentication test suite
65+
66+
- 1195-implement-unit-test-for-forms-on-the-frontend
67+
- Description: Implemented comprehensive frontend test suite covering authentication, collection management, search functionality, and pattern application forms.
68+
- Changes:
69+
- Added tests for authentication flows
70+
- Implemented collection display and data table tests
71+
- Added universal search functionality tests
72+
- Created search pane filter tests
73+
- Added pattern application form tests with validation checks

sde_collections/tests/frontend/test_pattern_application.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,12 @@ def test_create_title_pattern(self):
141141
assert "3" in row_text
142142

143143
self.driver.get(f"{self.live_server_url}/{self.collection.id}/delta-urls")
144+
145+
# Wait for at least one row to be present in the table
146+
self.wait.until(
147+
EC.presence_of_element_located((By.CSS_SELECTOR, "#delta_urls_table tbody tr td:not(.dt-empty)"))
148+
)
149+
144150
table_html = self.driver.find_element(By.ID, "delta_urls_table").get_attribute("outerHTML")
145151

146152
# Verify that previous curated_url now appear in delta_urls page after pattern application

sde_indexing_helper/static/js/delta_url_list.js

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1871,16 +1871,6 @@ function getCollectionId() {
18711871
return collection_id;
18721872
}
18731873

1874-
function getParameterByName(name, url) {
1875-
if (!url) url = window.location.href;
1876-
name = name.replace(/[\[\]]/g, "\\$&");
1877-
var regex = new RegExp("[?&]" + name + "(=([^&#]*)|&|#|$)"),
1878-
results = regex.exec(url);
1879-
if (!results) return null;
1880-
if (!results[2]) return "";
1881-
return decodeURIComponent(results[2].replace(/\+/g, " "));
1882-
}
1883-
18841874
function remove_protocol(url) {
18851875
return url.replace(/(^\w+:|^)\/\//, "");
18861876
}

0 commit comments

Comments
 (0)