mirror of
https://github.com/usebruno/bruno.git
synced 2026-06-25 13:45:52 +00:00
* feat: import multiple collections from a parent folder * feat: open collections in parallel, revert plural labels, and update playwright tests --------- Co-authored-by: Bijin Bruno <bijin@usebruno.com>
12 lines
438 B
TypeScript
12 lines
438 B
TypeScript
const closeAllCollections = async (page) => {
|
|
const numberOfCollections = await page.locator('.collection-name').count();
|
|
|
|
for (let i = 0; i < numberOfCollections; i++) {
|
|
await page.locator('.collection-name').first().locator('.collection-actions').click();
|
|
await page.locator('.dropdown-item').getByText('Close').click();
|
|
await page.getByRole('button', { name: 'Close' }).click();
|
|
}
|
|
};
|
|
|
|
export { closeAllCollections };
|