Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cypress第一題問題 #34

Open
vwvwMM opened this issue Dec 7, 2021 · 3 comments
Open

cypress第一題問題 #34

vwvwMM opened this issue Dec 7, 2021 · 3 comments

Comments

@vwvwMM
Copy link

vwvwMM commented Dec 7, 2021

我做到第四題時才開始跑cypress,而在我local做所有事情都很正常,server都有開起來,也能傳req到4000並傳回res,DB也有對應的動作,但在cypress中他第一題就說因為連不到server所以掛了,我確認了cypress底下的錯誤可能,包括沒有網路連線、server沒跑起來,有一句your web server isn't accessible我不是很懂,請問有可能是甚麼狀況呢?

@vwvwMM
Copy link
Author

vwvwMM commented Dec 7, 2021

歐他現在不知道為甚麼又突然跑得動了(但僅限第一題

@vwvwMM
Copy link
Author

vwvwMM commented Dec 7, 2021

是不是因為我是做完4,5後cypress才跑得動,所以DB裡面其實已經含有其他我放的測試資料,這樣他才跑不過呢?

@andyh0913
Copy link

照理來說第一題是只要你後端開得起來就可以拿到分數的,無論你後面寫了沒,做測試以前可以先 dataInit() 一次確保 db 的資料沒問題

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants