Open jimmy312495 opened 1 year ago
請問助教,我在跑TODO 1.4的Gradescope出現以下字樣:
Error: Timed out 1000ms waiting for expect(received).toHaveText(expected)
Expected string: "User not found" Received string: "" Call log:
waiting for getByTestId('toast')
83 | await loginButton.click() 84 | // Expect alert to be shown
85 | await expect(toast).toHaveText('User not found', { timeout: 1000 }) | ^ 86 | }) 87 | 88 | test('1.5 Ensure User Registration Functions Properly (8%)', async ({ page }) => {
請問這是正常的嗎?
這代表你可能沒有處理到登入失敗(找不到使用者)的測資喔!
請問助教,我在跑TODO 1.4的Gradescope出現以下字樣:
Error: Timed out 1000ms waiting for expect(received).toHaveText(expected)
Expected string: "User not found" Received string: "" Call log:
waiting for getByTestId('toast')
83 | await loginButton.click() 84 | // Expect alert to be shown
請問這是正常的嗎?