接口开始5%
This commit is contained in:
@@ -90,6 +90,15 @@ const run = async () => {
|
||||
await valueOf(send, "document.querySelector('.search-action').click()")
|
||||
await waitFor(send, "Boolean(document.querySelector('.search-empty'))", 'G06 empty result state did not render')
|
||||
|
||||
// 步骤三:失败关键词必须进入错误态,页面内“重新搜索”要真正再次触发加载,而不是静态摆设。
|
||||
await openG06(send)
|
||||
await setInput(send, '.search-input input', '失败')
|
||||
await valueOf(send, "document.querySelector('.search-action').click()")
|
||||
await waitFor(send, "Boolean(document.querySelector('.search-error'))", 'G06 search failure state did not render')
|
||||
await valueOf(send, "document.querySelector('.status-retry').click()")
|
||||
await waitFor(send, "Boolean(document.querySelector('.app-loading'))", 'G06 retry did not restart loading')
|
||||
await waitFor(send, "Boolean(document.querySelector('.search-error'))", 'G06 retry did not return the simulated failure state')
|
||||
|
||||
await openG06(send, 'invite')
|
||||
await setInput(send, '.invite-input input', 'BAD-CODE')
|
||||
await valueOf(send, "document.querySelector('.search-action').click()")
|
||||
|
||||
Reference in New Issue
Block a user