(page)
| 839 | return frames; |
| 840 | }; |
| 841 | const activeWorkspace = (page) => page.locator('[data-workspace-tab][aria-selected="true"]').first().getAttribute('data-workspace-tab').catch(() => ''); |
| 842 | /** The same text as the fresh view of the project, apart from numbers (times, memory) and spacing. */ |
| 843 | const sameText = (left, right) => left.replace(/\d[\d,.:]*/g, '#').replace(/\s+/g, ' ') === right.replace(/\d[\d,.:]*/g, '#').replace(/\s+/g, ' '); |
| 844 | async function switchTo(page, project) { |