@sun-asterisk/sungen 2.0.1 → 2.0.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/dist/cli/index.js CHANGED
@@ -15,7 +15,7 @@ async function main() {
15
15
  program
16
16
  .name('sungen')
17
17
  .description('Deterministic E2E Test Compiler — Gherkin + Selectors → Playwright')
18
- .version('2.0.0');
18
+ .version('2.0.2');
19
19
  // Global options
20
20
  program
21
21
  .option('-v, --verbose', 'Enable verbose logging');
@@ -1,2 +1,2 @@
1
- const tableRow = {{> locator}}.getByRole('row').filter({ hasText: '{{escapeQuotes filterValue}}' });
2
- await tableRow.getByRole('button', { name: '{{escapeQuotes elementName}}' }).{{action}}();
1
+ { const tableRow = {{> locator}}.getByRole('row').filter({ hasText: '{{escapeQuotes filterValue}}' });
2
+ await tableRow.getByRole('button', { name: '{{escapeQuotes elementName}}' }).{{action}}(); }
@@ -1,3 +1,3 @@
1
1
  await page.waitForLoadState('networkidle');
2
- const tableRow = {{> locator}}.getByRole('row').filter({ hasText: '{{escapeQuotes filterValue}}' });
3
- await expect(tableRow.getByRole('cell').filter({ hasText: '{{escapeQuotes cellValue}}' })).toBeVisible();
2
+ { const tableRow = {{> locator}}.getByRole('row').filter({ hasText: '{{escapeQuotes filterValue}}' });
3
+ await expect(tableRow.getByRole('cell').filter({ hasText: '{{escapeQuotes cellValue}}' })).toBeVisible(); }
@@ -1,3 +1,3 @@
1
1
  await page.waitForLoadState('networkidle');
2
- const tableRow = {{> locator}}.getByRole('row').nth({{rowIndex}});
3
- await expect(tableRow.getByRole('cell').filter({ hasText: '{{escapeQuotes cellValue}}' })).toBeVisible();
2
+ { const tableRow = {{> locator}}.getByRole('row').nth({{rowIndex}});
3
+ await expect(tableRow.getByRole('cell').filter({ hasText: '{{escapeQuotes cellValue}}' })).toBeVisible(); }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sun-asterisk/sungen",
3
- "version": "2.0.1",
3
+ "version": "2.0.2",
4
4
  "description": "Deterministic E2E Test Compiler - Gherkin + Selectors → Playwright tests",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
package/src/cli/index.ts CHANGED
@@ -16,7 +16,7 @@ async function main() {
16
16
  program
17
17
  .name('sungen')
18
18
  .description('Deterministic E2E Test Compiler — Gherkin + Selectors → Playwright')
19
- .version('2.0.0');
19
+ .version('2.0.2');
20
20
 
21
21
  // Global options
22
22
  program
@@ -1,2 +1,2 @@
1
- const tableRow = {{> locator}}.getByRole('row').filter({ hasText: '{{escapeQuotes filterValue}}' });
2
- await tableRow.getByRole('button', { name: '{{escapeQuotes elementName}}' }).{{action}}();
1
+ { const tableRow = {{> locator}}.getByRole('row').filter({ hasText: '{{escapeQuotes filterValue}}' });
2
+ await tableRow.getByRole('button', { name: '{{escapeQuotes elementName}}' }).{{action}}(); }
@@ -1,3 +1,3 @@
1
1
  await page.waitForLoadState('networkidle');
2
- const tableRow = {{> locator}}.getByRole('row').filter({ hasText: '{{escapeQuotes filterValue}}' });
3
- await expect(tableRow.getByRole('cell').filter({ hasText: '{{escapeQuotes cellValue}}' })).toBeVisible();
2
+ { const tableRow = {{> locator}}.getByRole('row').filter({ hasText: '{{escapeQuotes filterValue}}' });
3
+ await expect(tableRow.getByRole('cell').filter({ hasText: '{{escapeQuotes cellValue}}' })).toBeVisible(); }
@@ -1,3 +1,3 @@
1
1
  await page.waitForLoadState('networkidle');
2
- const tableRow = {{> locator}}.getByRole('row').nth({{rowIndex}});
3
- await expect(tableRow.getByRole('cell').filter({ hasText: '{{escapeQuotes cellValue}}' })).toBeVisible();
2
+ { const tableRow = {{> locator}}.getByRole('row').nth({{rowIndex}});
3
+ await expect(tableRow.getByRole('cell').filter({ hasText: '{{escapeQuotes cellValue}}' })).toBeVisible(); }