【发布时间】:2022-09-30 04:20:23
【问题描述】:
我是黄瓜测试的新手。我有一个可以正常工作的入门测试,但我需要在测试之间清除数据库。
这是场景:
Scenario: Should update the stock levels
Given user is on the product page
When user updates the stock quantity
Then the new stock quantity is available on the product page
如何处理 Cucumber 中数据库的清除?我见过Seeding Your Database in Node 的配方,但我如何在 Cucumber 中实现它?
标签: cypress