Skip to content

Commit 0aab57d

Browse files
committed
Add modal content to accessibility scan.
1 parent d29be49 commit 0aab57d

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

python_components/accessibility_scan/main.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
f"http://{ACCESSIBILITY_SCAN_HOST}:3000/sites",
2020
f"http://{ACCESSIBILITY_SCAN_HOST}:3000/sites/1/documents",
2121
f"http://{ACCESSIBILITY_SCAN_HOST}:3000/sites/1/insights",
22+
f"http://{ACCESSIBILITY_SCAN_HOST}:3000/sites/1/documents/302/modal_content"
2223
)
2324

2425

python_components/accessibility_scan/scripts/local_accessibility_scan.sh

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,15 @@
11
#!/bin/bash
22

3-
# Name of the image locally.
4-
LOCAL_ACCESSIBILITY_SCAN_IMAGE='asap:accessibility_scan'
5-
63
# Store the directory this script is in.
74
# This allows us to run the script consistently from anywhere.
85
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
96

7+
# Add an inference to our test document.
8+
"$SCRIPT_DIR"/../../../bin/rake "documents:add_document_inference[302,exception:is_archival,True,Fee fi fo fum.]"
9+
10+
# Name of the image locally.
11+
LOCAL_ACCESSIBILITY_SCAN_IMAGE="asap:accessibility_scan"
12+
1013
# Build the image if not cached.
1114
docker build -t $LOCAL_ACCESSIBILITY_SCAN_IMAGE $SCRIPT_DIR/../.
1215

0 commit comments

Comments
 (0)