(page, elementId, attributeName)
| 153 | } |
| 154 | |
| 155 | export async function nextAttributeMutationNamed(page, elementId, attributeName) { |
| 156 | let record |
| 157 | const startTime = new Date() |
| 158 | while (!record) { |
| 159 | if (new Date() - startTime > timeout) { |
| 160 | throw new Error(`Element ${elementId}'s ${attributeName} attribute mutation didn't occur within ${timeout}ms`) |
| 161 | } |
| 162 | const records = await readMutationLogs(page, 1) |
| 163 | record = records.find(([name, id]) => name == attributeName && id == elementId) |
| 164 | } |
| 165 | const attributeValue = record[2] |
| 166 | return attributeValue |
| 167 | } |
| 168 | |
| 169 | export async function noNextAttributeMutationNamed(page, elementId, attributeName) { |
| 170 | const records = await readMutationLogs(page, 1) |
no test coverage detected
searching dependent graphs…