Closed boyuancao closed 11 months ago
Error: Timed out 1500ms waiting for expect(locator).toBeChecked()
Locator: locator('div').filter({ hasText: /^Task 1delete$/ }).getByRole('checkbox') Expected: checked Received: unchecked Call log:
unexpected value "unchecked"
14 | .getByRole("checkbox"); 15 | await task1Checkbox.click();
16 | await expect(task1Checkbox).toBeChecked(); | ^ 17 | 18 | await addTask(page, "Task 2"); 19 | const task2Checkbox = page
at /autograder/source/tests/public-9.spec.ts:16:31
同學你好,請問你在本地 yarn test 會過嗎?
不會
TODO 9. 沒做,當然不會過
Error: Timed out 1500ms waiting for expect(locator).toBeChecked()
Locator: locator('div').filter({ hasText: /^Task 1delete$/ }).getByRole('checkbox') Expected: checked Received: unchecked Call log:
unexpected value "unchecked"
14 | .getByRole("checkbox"); 15 | await task1Checkbox.click();
at /autograder/source/tests/public-9.spec.ts:16:31