Skip to content
This repository was archived by the owner on Jun 7, 2023. It is now read-only.

Commit 8783185

Browse files
committed
Fix: Correct text in tests so that they pass.
1 parent 16b0bea commit 8783185

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

runestone/hparsons/test/test_hparsons.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ def test_run_block(selenium_utils_get):
5151
# 1-2. Click on run button to check the result is hinting missing blocks
5252
run_btn.click()
5353
feedback_area = hp_question.find_element(By.CLASS_NAME, 'alert')
54-
assert 'Your program is too short.' in feedback_area.text
54+
assert 'Your answer is too short.' in feedback_area.text
5555

5656
# 2-1. Click on more blocks to form an incorrect solution
5757
block = drag_area.find_element(By.CSS_SELECTOR, '.parsons-block')
@@ -60,7 +60,7 @@ def test_run_block(selenium_utils_get):
6060
run_btn.click()
6161
time.sleep(1)
6262
feedback_area = hp_question.find_element(By.CLASS_NAME, 'alert')
63-
assert 'Highlighted blocks in your program are wrong or are in the wrong order.' in feedback_area.text
63+
assert 'Highlighted blocks in your answer are wrong or are in the wrong order.' in feedback_area.text
6464
highlighted_blocks = []
6565
for block in drop_area.find_elements(By.CSS_SELECTOR, '.parsons-block.incorrectPosition'):
6666
highlighted_blocks.append(block.text)

0 commit comments

Comments
 (0)