@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 +1 -1
- package/dist/generators/test-generator/adapters/playwright/templates/steps/actions/table-action-in-row.hbs +2 -2
- package/dist/generators/test-generator/adapters/playwright/templates/steps/assertions/table-cell-by-filter.hbs +2 -2
- package/dist/generators/test-generator/adapters/playwright/templates/steps/assertions/table-cell-by-index.hbs +2 -2
- package/package.json +1 -1
- package/src/cli/index.ts +1 -1
- package/src/generators/test-generator/adapters/playwright/templates/steps/actions/table-action-in-row.hbs +2 -2
- package/src/generators/test-generator/adapters/playwright/templates/steps/assertions/table-cell-by-filter.hbs +2 -2
- package/src/generators/test-generator/adapters/playwright/templates/steps/assertions/table-cell-by-index.hbs +2 -2
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.
|
|
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
package/src/cli/index.ts
CHANGED
|
@@ -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(); }
|