修改完成
This commit is contained in:
@@ -101,7 +101,7 @@ const run = async () => {
|
||||
if ((await valueOf(send, "document.querySelectorAll('.add-dialog .app-button').length")) !== 3) {
|
||||
throw new Error('G01 add dialog must keep search, invite, and create visible together')
|
||||
}
|
||||
await valueOf(send, "document.querySelector('.dialog-close').click()")
|
||||
await valueOf(send, "document.querySelector('.add-dialog__close').click()")
|
||||
await waitFor(send, "!document.querySelector('.add-dialog-layer')", 'G01 add dialog did not close')
|
||||
|
||||
await valueOf(send, "document.querySelector('.current-slip').click()")
|
||||
@@ -192,7 +192,7 @@ const run = async () => {
|
||||
if (scrollTopBeforeDialog <= 0) throw new Error('G01 list must be scrolled before testing position preservation')
|
||||
await valueOf(send, "document.querySelector('.create-action').click()")
|
||||
await waitFor(send, "Boolean(document.querySelector('.add-dialog-layer'))", 'G01 add dialog did not open over the independent list')
|
||||
await valueOf(send, "document.querySelector('.dialog-close').click()")
|
||||
await valueOf(send, "document.querySelector('.add-dialog__close').click()")
|
||||
await waitFor(send, "!document.querySelector('.add-dialog-layer')", 'G01 add dialog did not close over the independent list')
|
||||
const scrollTopAfterDialog = await valueOf(send, readListScrollTop)
|
||||
if (Math.abs(scrollTopAfterDialog - scrollTopBeforeDialog) > 1) {
|
||||
|
||||
Reference in New Issue
Block a user