@alfresco/aca-playwright-shared 7.3.0-20774048549 → 7.3.0-20822125761

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -6,6 +6,7 @@ import { format, endOfMonth, subMonths, subDays } from 'date-fns';
6
6
  import StreamZip from 'node-stream-zip';
7
7
  import * as fs from 'fs';
8
8
  import fs__default from 'fs';
9
+ import { loadEnvFile } from 'node:process';
9
10
  import * as crypto$1 from 'crypto';
10
11
 
11
12
  /*!
@@ -1345,16 +1346,16 @@ class DataTableComponent extends BaseComponent {
1345
1346
  */
1346
1347
  class ToolbarComponent extends BaseComponent {
1347
1348
  static rootElement = 'adf-toolbar';
1348
- createRuleButton = this.getChild('[data-automation-id="manage-rules-create-button"]');
1349
- linkRulesButton = this.getChild('[data-automation-id="manage-rules-link-button"]');
1350
1349
  constructor(page) {
1351
1350
  super(page, ToolbarComponent.rootElement);
1352
1351
  }
1353
1352
  async clickCreateRuleButton() {
1354
- await this.createRuleButton.click();
1353
+ const button = this.page.locator('[data-automation-id="manage-rules-create-button"]');
1354
+ await button.click();
1355
1355
  }
1356
1356
  async clickLinkRulesButton() {
1357
- await this.linkRulesButton.click();
1357
+ const button = this.page.locator('[data-automation-id="manage-rules-link-button"]');
1358
+ await button.click();
1358
1359
  }
1359
1360
  }
1360
1361
 
@@ -4474,7 +4475,7 @@ async function createOutputFolders() {
4474
4475
  }
4475
4476
  async function removeOutputFolders() {
4476
4477
  if (fs__default.existsSync(paths.rootFolder)) {
4477
- fs__default.rmdirSync(paths.rootFolder, { recursive: true });
4478
+ fs__default.rmSync(paths.rootFolder, { recursive: true, force: true });
4478
4479
  }
4479
4480
  }
4480
4481
 
@@ -4556,7 +4557,12 @@ const getReporter = () => {
4556
4557
  * You should have received a copy of the GNU Lesser General Public License
4557
4558
  * from Hyland Software. If not, see <http://www.gnu.org/licenses/>.
4558
4559
  */
4559
- require('@alfresco/adf-cli/tooling').dotenvConfig();
4560
+ try {
4561
+ loadEnvFile();
4562
+ }
4563
+ catch (error) {
4564
+ // .env file is optional, continue without it
4565
+ }
4560
4566
  const { env } = process;
4561
4567
  function getBrowsersToUse() {
4562
4568
  const browserEnv = (env.PLAYWRIGHT_BROWSER || 'chromium').toLowerCase();