@applitools/eyes-playwright 1.30.1 → 1.30.2

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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # Changelog
2
2
 
3
+ ## [1.30.2](https://github.com/Applitools-Dev/sdk/compare/js/eyes-playwright@1.30.1...js/eyes-playwright@1.30.2) (2024-10-31)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * playwright fixture run-example cli ([7243c7a](https://github.com/Applitools-Dev/sdk/commit/7243c7a88673fda2df3536d9efd60d371c1ff835))
9
+
3
10
  ## [1.30.1](https://github.com/Applitools-Dev/sdk/compare/js/eyes-playwright@1.30.0...js/eyes-playwright@1.30.1) (2024-10-31)
4
11
 
5
12
 
@@ -165,23 +165,23 @@ async function runExample() {
165
165
  async function writeTmpPlaywrightConfig() {
166
166
  if (!playwrightTmpExists) {
167
167
  const playwrighConfig = await fs_1.promises.readFile('./playwright.config.ts', 'utf-8');
168
- const apikeyMatch = playwrighConfig.match(/apiKey: (.+)/);
168
+ const apikeyMatch = playwrighConfig.match(/apiKey: ([^,]+)/);
169
169
  const apiKey = apikeyMatch ? apikeyMatch[1] : undefined;
170
- const serverUrlMatch = playwrighConfig.match(/serverUrl: (.+)/);
170
+ const serverUrlMatch = playwrighConfig.match(/serverUrl: ([^,]+)/);
171
171
  const serverUrl = serverUrlMatch ? serverUrlMatch[1] : undefined;
172
172
  const playwrightTmpConfig = `import { defineConfig, devices } from '@playwright/test';
173
- import { EyesFixture } from '@applitools/eyes-playwright/fixture';
174
- export default defineConfig<EyesFixture>({
175
- testDir: '.',
176
- outputDir: './test-results',
177
- reporter: [['@applitools/eyes-playwright/reporter', {open: 'always', outputFolder: './eyes-playwright-report'}]],
178
- use: {
179
- eyesConfig: {
180
- apiKey: ${apiKey !== null && apiKey !== void 0 ? apiKey : ''},
181
- serverUrl: ${serverUrl !== null && serverUrl !== void 0 ? serverUrl : ''}
182
- }
173
+ import { EyesFixture } from '@applitools/eyes-playwright/fixture';
174
+ export default defineConfig<EyesFixture>({
175
+ testDir: '.',
176
+ outputDir: './test-results',
177
+ reporter: [['@applitools/eyes-playwright/reporter', {open: 'always', outputFolder: './eyes-playwright-report'}]],
178
+ use: {
179
+ eyesConfig: {
180
+ apiKey: ${apiKey !== null && apiKey !== void 0 ? apiKey : ''},
181
+ serverUrl: ${serverUrl !== null && serverUrl !== void 0 ? serverUrl : ''}
183
182
  }
184
- })`;
183
+ }
184
+ })`;
185
185
  await fs_1.promises.writeFile(playwrightTmpConfigPath, playwrightTmpConfig);
186
186
  }
187
187
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@applitools/eyes-playwright",
3
- "version": "1.30.1",
3
+ "version": "1.30.2",
4
4
  "description": "Applitools Eyes SDK for Playwright",
5
5
  "keywords": [
6
6
  "eyes-playwright",