@lowdefy/blocks-antd 4.6.0 → 4.7.0

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.
Files changed (58) hide show
  1. package/dist/blocks/Affix/e2e.js +2 -2
  2. package/dist/blocks/Alert/e2e.js +2 -2
  3. package/dist/blocks/AutoComplete/e2e.js +3 -3
  4. package/dist/blocks/Avatar/e2e.js +2 -2
  5. package/dist/blocks/Badge/e2e.js +2 -2
  6. package/dist/blocks/Breadcrumb/e2e.js +2 -2
  7. package/dist/blocks/Button/e2e.js +2 -2
  8. package/dist/blocks/ButtonSelector/e2e.js +2 -2
  9. package/dist/blocks/Card/e2e.js +2 -2
  10. package/dist/blocks/Carousel/e2e.js +2 -2
  11. package/dist/blocks/CheckboxSelector/e2e.js +2 -2
  12. package/dist/blocks/CheckboxSwitch/e2e.js +3 -3
  13. package/dist/blocks/Collapse/e2e.js +2 -2
  14. package/dist/blocks/Comment/e2e.js +2 -2
  15. package/dist/blocks/Content/e2e.js +2 -2
  16. package/dist/blocks/ControlledList/e2e.js +4 -4
  17. package/dist/blocks/DateRangeSelector/e2e.js +2 -2
  18. package/dist/blocks/DateSelector/e2e.js +3 -3
  19. package/dist/blocks/DateTimeSelector/e2e.js +3 -3
  20. package/dist/blocks/Descriptions/e2e.js +2 -2
  21. package/dist/blocks/Divider/e2e.js +2 -2
  22. package/dist/blocks/Footer/e2e.js +2 -2
  23. package/dist/blocks/Header/e2e.js +2 -2
  24. package/dist/blocks/Label/e2e.js +2 -2
  25. package/dist/blocks/Layout/e2e.js +2 -2
  26. package/dist/blocks/Menu/e2e.js +2 -2
  27. package/dist/blocks/MobileMenu/e2e.js +2 -2
  28. package/dist/blocks/MonthSelector/e2e.js +3 -3
  29. package/dist/blocks/MultipleSelector/e2e.js +2 -2
  30. package/dist/blocks/NumberInput/e2e.js +2 -2
  31. package/dist/blocks/PageHeaderMenu/e2e.js +3 -3
  32. package/dist/blocks/PageSiderMenu/e2e.js +2 -2
  33. package/dist/blocks/Pagination/e2e.js +2 -2
  34. package/dist/blocks/Paragraph/e2e.js +2 -2
  35. package/dist/blocks/ParagraphInput/e2e.js +2 -2
  36. package/dist/blocks/PasswordInput/e2e.js +2 -2
  37. package/dist/blocks/PhoneNumberInput/e2e.js +2 -2
  38. package/dist/blocks/Popover/e2e.js +2 -2
  39. package/dist/blocks/Progress/e2e.js +2 -2
  40. package/dist/blocks/RadioSelector/e2e.js +2 -2
  41. package/dist/blocks/RatingSlider/e2e.js +3 -3
  42. package/dist/blocks/Result/e2e.js +2 -2
  43. package/dist/blocks/Selector/e2e.js +2 -2
  44. package/dist/blocks/Sider/e2e.js +2 -2
  45. package/dist/blocks/Slider/e2e.js +3 -3
  46. package/dist/blocks/Statistic/e2e.js +2 -2
  47. package/dist/blocks/Switch/e2e.js +2 -2
  48. package/dist/blocks/Tabs/e2e.js +2 -2
  49. package/dist/blocks/Tag/e2e.js +2 -2
  50. package/dist/blocks/TextArea/e2e.js +2 -2
  51. package/dist/blocks/TextInput/e2e.js +2 -2
  52. package/dist/blocks/TimelineList/e2e.js +2 -2
  53. package/dist/blocks/Title/e2e.js +2 -2
  54. package/dist/blocks/TitleInput/e2e.js +2 -2
  55. package/dist/blocks/Tooltip/e2e.js +2 -2
  56. package/dist/blocks/TreeSelector/e2e.js +2 -2
  57. package/dist/blocks/WeekSelector/e2e.js +3 -3
  58. package/package.json +6 -6
@@ -12,8 +12,8 @@
12
12
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
13
  See the License for the specific language governing permissions and
14
14
  limitations under the License.
15
- */ import { createBlockHelper } from '@lowdefy/e2e-utils';
16
- const locator = (page, blockId)=>page.locator(`#bl-${blockId}`);
15
+ */ import { createBlockHelper, escapeId } from '@lowdefy/e2e-utils';
16
+ const locator = (page, blockId)=>page.locator(`#bl-${escapeId(blockId)}`);
17
17
  export default createBlockHelper({
18
18
  locator
19
19
  });
@@ -12,9 +12,9 @@
12
12
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
13
  See the License for the specific language governing permissions and
14
14
  limitations under the License.
15
- */ import { createBlockHelper } from '@lowdefy/e2e-utils';
15
+ */ import { createBlockHelper, escapeId } from '@lowdefy/e2e-utils';
16
16
  import { expect } from '@playwright/test';
17
- const locator = (page, blockId)=>page.locator(`#bl-${blockId} .ant-alert`);
17
+ const locator = (page, blockId)=>page.locator(`#bl-${escapeId(blockId)} .ant-alert`);
18
18
  export default createBlockHelper({
19
19
  locator,
20
20
  do: {
@@ -12,10 +12,10 @@
12
12
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
13
  See the License for the specific language governing permissions and
14
14
  limitations under the License.
15
- */ import { createBlockHelper } from '@lowdefy/e2e-utils';
15
+ */ import { createBlockHelper, escapeId } from '@lowdefy/e2e-utils';
16
16
  import { expect } from '@playwright/test';
17
- const locator = (page, blockId)=>page.locator(`.ant-select:has(#${blockId}_input)`);
18
- const input = (page, blockId)=>page.locator(`#${blockId}_input`);
17
+ const locator = (page, blockId)=>page.locator(`.ant-select:has(#${escapeId(blockId)}_input)`);
18
+ const input = (page, blockId)=>page.locator(`#${escapeId(blockId)}_input`);
19
19
  export default createBlockHelper({
20
20
  locator,
21
21
  do: {
@@ -12,8 +12,8 @@
12
12
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
13
  See the License for the specific language governing permissions and
14
14
  limitations under the License.
15
- */ import { createBlockHelper } from '@lowdefy/e2e-utils';
16
- const locator = (page, blockId)=>page.locator(`#${blockId}`);
15
+ */ import { createBlockHelper, escapeId } from '@lowdefy/e2e-utils';
16
+ const locator = (page, blockId)=>page.locator(`#${escapeId(blockId)}`);
17
17
  export default createBlockHelper({
18
18
  locator
19
19
  });
@@ -12,9 +12,9 @@
12
12
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
13
  See the License for the specific language governing permissions and
14
14
  limitations under the License.
15
- */ import { createBlockHelper } from '@lowdefy/e2e-utils';
15
+ */ import { createBlockHelper, escapeId } from '@lowdefy/e2e-utils';
16
16
  import { expect } from '@playwright/test';
17
- const locator = (page, blockId)=>page.locator(`#${blockId}`);
17
+ const locator = (page, blockId)=>page.locator(`#${escapeId(blockId)}`);
18
18
  export default createBlockHelper({
19
19
  locator,
20
20
  expect: {
@@ -12,9 +12,9 @@
12
12
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
13
  See the License for the specific language governing permissions and
14
14
  limitations under the License.
15
- */ import { createBlockHelper } from '@lowdefy/e2e-utils';
15
+ */ import { createBlockHelper, escapeId } from '@lowdefy/e2e-utils';
16
16
  import { expect } from '@playwright/test';
17
- const locator = (page, blockId)=>page.locator(`#${blockId}`);
17
+ const locator = (page, blockId)=>page.locator(`#${escapeId(blockId)}`);
18
18
  export default createBlockHelper({
19
19
  locator,
20
20
  expect: {
@@ -12,9 +12,9 @@
12
12
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
13
  See the License for the specific language governing permissions and
14
14
  limitations under the License.
15
- */ import { createBlockHelper } from '@lowdefy/e2e-utils';
15
+ */ import { createBlockHelper, escapeId } from '@lowdefy/e2e-utils';
16
16
  import { expect } from '@playwright/test';
17
- const locator = (page, blockId)=>page.locator(`#bl-${blockId} .ant-btn`);
17
+ const locator = (page, blockId)=>page.locator(`#bl-${escapeId(blockId)} .ant-btn`);
18
18
  export default createBlockHelper({
19
19
  locator,
20
20
  do: {
@@ -12,9 +12,9 @@
12
12
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
13
  See the License for the specific language governing permissions and
14
14
  limitations under the License.
15
- */ import { createBlockHelper } from '@lowdefy/e2e-utils';
15
+ */ import { createBlockHelper, escapeId } from '@lowdefy/e2e-utils';
16
16
  import { expect } from '@playwright/test';
17
- const locator = (page, blockId)=>page.locator(`#${blockId}_input`);
17
+ const locator = (page, blockId)=>page.locator(`#${escapeId(blockId)}_input`);
18
18
  export default createBlockHelper({
19
19
  locator,
20
20
  do: {
@@ -12,9 +12,9 @@
12
12
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
13
  See the License for the specific language governing permissions and
14
14
  limitations under the License.
15
- */ import { createBlockHelper } from '@lowdefy/e2e-utils';
15
+ */ import { createBlockHelper, escapeId } from '@lowdefy/e2e-utils';
16
16
  import { expect } from '@playwright/test';
17
- const locator = (page, blockId)=>page.locator(`#${blockId}`);
17
+ const locator = (page, blockId)=>page.locator(`#${escapeId(blockId)}`);
18
18
  export default createBlockHelper({
19
19
  locator,
20
20
  do: {
@@ -12,8 +12,8 @@
12
12
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
13
  See the License for the specific language governing permissions and
14
14
  limitations under the License.
15
- */ import { createBlockHelper } from '@lowdefy/e2e-utils';
16
- const locator = (page, blockId)=>page.locator(`#bl-${blockId} .ant-carousel`);
15
+ */ import { createBlockHelper, escapeId } from '@lowdefy/e2e-utils';
16
+ const locator = (page, blockId)=>page.locator(`#bl-${escapeId(blockId)} .ant-carousel`);
17
17
  export default createBlockHelper({
18
18
  locator,
19
19
  do: {
@@ -12,9 +12,9 @@
12
12
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
13
  See the License for the specific language governing permissions and
14
14
  limitations under the License.
15
- */ import { createBlockHelper } from '@lowdefy/e2e-utils';
15
+ */ import { createBlockHelper, escapeId } from '@lowdefy/e2e-utils';
16
16
  import { expect } from '@playwright/test';
17
- const locator = (page, blockId)=>page.locator(`#${blockId}_input`);
17
+ const locator = (page, blockId)=>page.locator(`#${escapeId(blockId)}_input`);
18
18
  export default createBlockHelper({
19
19
  locator,
20
20
  do: {
@@ -12,10 +12,10 @@
12
12
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
13
  See the License for the specific language governing permissions and
14
14
  limitations under the License.
15
- */ import { createBlockHelper } from '@lowdefy/e2e-utils';
15
+ */ import { createBlockHelper, escapeId } from '@lowdefy/e2e-utils';
16
16
  import { expect } from '@playwright/test';
17
- const locator = (page, blockId)=>page.locator(`#${blockId}_input`);
18
- const wrapper = (page, blockId)=>page.locator(`#bl-${blockId} .ant-checkbox-wrapper`);
17
+ const locator = (page, blockId)=>page.locator(`#${escapeId(blockId)}_input`);
18
+ const wrapper = (page, blockId)=>page.locator(`#bl-${escapeId(blockId)} .ant-checkbox-wrapper`);
19
19
  export default createBlockHelper({
20
20
  locator,
21
21
  do: {
@@ -12,9 +12,9 @@
12
12
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
13
  See the License for the specific language governing permissions and
14
14
  limitations under the License.
15
- */ import { createBlockHelper } from '@lowdefy/e2e-utils';
15
+ */ import { createBlockHelper, escapeId } from '@lowdefy/e2e-utils';
16
16
  import { expect } from '@playwright/test';
17
- const locator = (page, blockId)=>page.locator(`#bl-${blockId} .ant-collapse`);
17
+ const locator = (page, blockId)=>page.locator(`#bl-${escapeId(blockId)} .ant-collapse`);
18
18
  export default createBlockHelper({
19
19
  locator,
20
20
  do: {
@@ -12,9 +12,9 @@
12
12
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
13
  See the License for the specific language governing permissions and
14
14
  limitations under the License.
15
- */ import { createBlockHelper } from '@lowdefy/e2e-utils';
15
+ */ import { createBlockHelper, escapeId } from '@lowdefy/e2e-utils';
16
16
  import { expect } from '@playwright/test';
17
- const locator = (page, blockId)=>page.locator(`#${blockId}`);
17
+ const locator = (page, blockId)=>page.locator(`#${escapeId(blockId)}`);
18
18
  export default createBlockHelper({
19
19
  locator,
20
20
  expect: {
@@ -12,8 +12,8 @@
12
12
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
13
  See the License for the specific language governing permissions and
14
14
  limitations under the License.
15
- */ import { createBlockHelper } from '@lowdefy/e2e-utils';
16
- const locator = (page, blockId)=>page.locator(`#bl-${blockId} .ant-layout-content`);
15
+ */ import { createBlockHelper, escapeId } from '@lowdefy/e2e-utils';
16
+ const locator = (page, blockId)=>page.locator(`#bl-${escapeId(blockId)} .ant-layout-content`);
17
17
  export default createBlockHelper({
18
18
  locator
19
19
  });
@@ -12,14 +12,14 @@
12
12
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
13
  See the License for the specific language governing permissions and
14
14
  limitations under the License.
15
- */ import { createBlockHelper } from '@lowdefy/e2e-utils';
15
+ */ import { createBlockHelper, escapeId } from '@lowdefy/e2e-utils';
16
16
  import { expect } from '@playwright/test';
17
- const locator = (page, blockId)=>page.locator(`#${blockId}`);
17
+ const locator = (page, blockId)=>page.locator(`#${escapeId(blockId)}`);
18
18
  export default createBlockHelper({
19
19
  locator,
20
20
  do: {
21
- add: (page, blockId)=>page.locator(`#${blockId}_add_button`).click(),
22
- remove: (page, blockId, index)=>page.locator(`#${blockId}_${index}_remove_icon`).click()
21
+ add: (page, blockId)=>page.locator(`#${escapeId(blockId)}_add_button`).click(),
22
+ remove: (page, blockId, index)=>page.locator(`#${escapeId(blockId)}_${index}_remove_icon`).click()
23
23
  },
24
24
  expect: {
25
25
  itemCount: (page, blockId, count)=>expect(locator(page, blockId).locator('.ant-list-item')).toHaveCount(count)
@@ -12,8 +12,8 @@
12
12
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
13
  See the License for the specific language governing permissions and
14
14
  limitations under the License.
15
- */ import { createBlockHelper } from '@lowdefy/e2e-utils';
16
- const locator = (page, blockId)=>page.locator(`.ant-picker-range:has(#${blockId}_input)`);
15
+ */ import { createBlockHelper, escapeId } from '@lowdefy/e2e-utils';
16
+ const locator = (page, blockId)=>page.locator(`.ant-picker-range:has(#${escapeId(blockId)}_input)`);
17
17
  export default createBlockHelper({
18
18
  locator,
19
19
  do: {
@@ -12,10 +12,10 @@
12
12
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
13
  See the License for the specific language governing permissions and
14
14
  limitations under the License.
15
- */ import { createBlockHelper } from '@lowdefy/e2e-utils';
15
+ */ import { createBlockHelper, escapeId } from '@lowdefy/e2e-utils';
16
16
  import { expect } from '@playwright/test';
17
- const locator = (page, blockId)=>page.locator(`.ant-picker:has(#${blockId}_input)`);
18
- const input = (page, blockId)=>page.locator(`#${blockId}_input`);
17
+ const locator = (page, blockId)=>page.locator(`.ant-picker:has(#${escapeId(blockId)}_input)`);
18
+ const input = (page, blockId)=>page.locator(`#${escapeId(blockId)}_input`);
19
19
  export default createBlockHelper({
20
20
  locator,
21
21
  do: {
@@ -12,10 +12,10 @@
12
12
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
13
  See the License for the specific language governing permissions and
14
14
  limitations under the License.
15
- */ import { createBlockHelper } from '@lowdefy/e2e-utils';
15
+ */ import { createBlockHelper, escapeId } from '@lowdefy/e2e-utils';
16
16
  import { expect } from '@playwright/test';
17
- const locator = (page, blockId)=>page.locator(`.ant-picker:has(#${blockId}_input)`);
18
- const input = (page, blockId)=>page.locator(`#${blockId}_input`);
17
+ const locator = (page, blockId)=>page.locator(`.ant-picker:has(#${escapeId(blockId)}_input)`);
18
+ const input = (page, blockId)=>page.locator(`#${escapeId(blockId)}_input`);
19
19
  export default createBlockHelper({
20
20
  locator,
21
21
  do: {
@@ -12,9 +12,9 @@
12
12
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
13
  See the License for the specific language governing permissions and
14
14
  limitations under the License.
15
- */ import { createBlockHelper } from '@lowdefy/e2e-utils';
15
+ */ import { createBlockHelper, escapeId } from '@lowdefy/e2e-utils';
16
16
  import { expect } from '@playwright/test';
17
- const locator = (page, blockId)=>page.locator(`#bl-${blockId} .ant-descriptions`);
17
+ const locator = (page, blockId)=>page.locator(`#bl-${escapeId(blockId)} .ant-descriptions`);
18
18
  export default createBlockHelper({
19
19
  locator,
20
20
  expect: {
@@ -12,8 +12,8 @@
12
12
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
13
  See the License for the specific language governing permissions and
14
14
  limitations under the License.
15
- */ import { createBlockHelper } from '@lowdefy/e2e-utils';
16
- const locator = (page, blockId)=>page.locator(`#bl-${blockId} .ant-divider`);
15
+ */ import { createBlockHelper, escapeId } from '@lowdefy/e2e-utils';
16
+ const locator = (page, blockId)=>page.locator(`#bl-${escapeId(blockId)} .ant-divider`);
17
17
  export default createBlockHelper({
18
18
  locator
19
19
  });
@@ -12,8 +12,8 @@
12
12
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
13
  See the License for the specific language governing permissions and
14
14
  limitations under the License.
15
- */ import { createBlockHelper } from '@lowdefy/e2e-utils';
16
- const locator = (page, blockId)=>page.locator(`#bl-${blockId} .ant-layout-footer`);
15
+ */ import { createBlockHelper, escapeId } from '@lowdefy/e2e-utils';
16
+ const locator = (page, blockId)=>page.locator(`#bl-${escapeId(blockId)} .ant-layout-footer`);
17
17
  export default createBlockHelper({
18
18
  locator
19
19
  });
@@ -12,8 +12,8 @@
12
12
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
13
  See the License for the specific language governing permissions and
14
14
  limitations under the License.
15
- */ import { createBlockHelper } from '@lowdefy/e2e-utils';
16
- const locator = (page, blockId)=>page.locator(`#bl-${blockId} .ant-layout-header`);
15
+ */ import { createBlockHelper, escapeId } from '@lowdefy/e2e-utils';
16
+ const locator = (page, blockId)=>page.locator(`#bl-${escapeId(blockId)} .ant-layout-header`);
17
17
  export default createBlockHelper({
18
18
  locator
19
19
  });
@@ -12,9 +12,9 @@
12
12
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
13
  See the License for the specific language governing permissions and
14
14
  limitations under the License.
15
- */ import { createBlockHelper } from '@lowdefy/e2e-utils';
15
+ */ import { createBlockHelper, escapeId } from '@lowdefy/e2e-utils';
16
16
  import { expect } from '@playwright/test';
17
- const locator = (page, blockId)=>page.locator(`#${blockId}`);
17
+ const locator = (page, blockId)=>page.locator(`#${escapeId(blockId)}`);
18
18
  export default createBlockHelper({
19
19
  locator,
20
20
  expect: {
@@ -12,8 +12,8 @@
12
12
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
13
  See the License for the specific language governing permissions and
14
14
  limitations under the License.
15
- */ import { createBlockHelper } from '@lowdefy/e2e-utils';
16
- const locator = (page, blockId)=>page.locator(`#bl-${blockId} .ant-layout`);
15
+ */ import { createBlockHelper, escapeId } from '@lowdefy/e2e-utils';
16
+ const locator = (page, blockId)=>page.locator(`#bl-${escapeId(blockId)} .ant-layout`);
17
17
  export default createBlockHelper({
18
18
  locator
19
19
  });
@@ -12,9 +12,9 @@
12
12
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
13
  See the License for the specific language governing permissions and
14
14
  limitations under the License.
15
- */ import { createBlockHelper } from '@lowdefy/e2e-utils';
15
+ */ import { createBlockHelper, escapeId } from '@lowdefy/e2e-utils';
16
16
  import { expect } from '@playwright/test';
17
- const locator = (page, blockId)=>page.locator(`#${blockId}`);
17
+ const locator = (page, blockId)=>page.locator(`#${escapeId(blockId)}`);
18
18
  export default createBlockHelper({
19
19
  locator,
20
20
  do: {
@@ -12,9 +12,9 @@
12
12
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
13
  See the License for the specific language governing permissions and
14
14
  limitations under the License.
15
- */ import { createBlockHelper } from '@lowdefy/e2e-utils';
15
+ */ import { createBlockHelper, escapeId } from '@lowdefy/e2e-utils';
16
16
  import { expect } from '@playwright/test';
17
- const locator = (page, blockId)=>page.locator(`#bl-${blockId}`);
17
+ const locator = (page, blockId)=>page.locator(`#bl-${escapeId(blockId)}`);
18
18
  // Menu items render inside a Drawer portal, not inside #bl-${blockId}.
19
19
  const drawerMenu = (page)=>page.locator('.ant-drawer .ant-menu');
20
20
  export default createBlockHelper({
@@ -12,10 +12,10 @@
12
12
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
13
  See the License for the specific language governing permissions and
14
14
  limitations under the License.
15
- */ import { createBlockHelper } from '@lowdefy/e2e-utils';
15
+ */ import { createBlockHelper, escapeId } from '@lowdefy/e2e-utils';
16
16
  import { expect } from '@playwright/test';
17
- const locator = (page, blockId)=>page.locator(`.ant-picker:has(#${blockId}_input)`);
18
- const input = (page, blockId)=>page.locator(`#${blockId}_input`);
17
+ const locator = (page, blockId)=>page.locator(`.ant-picker:has(#${escapeId(blockId)}_input)`);
18
+ const input = (page, blockId)=>page.locator(`#${escapeId(blockId)}_input`);
19
19
  export default createBlockHelper({
20
20
  locator,
21
21
  do: {
@@ -12,9 +12,9 @@
12
12
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
13
  See the License for the specific language governing permissions and
14
14
  limitations under the License.
15
- */ import { createBlockHelper } from '@lowdefy/e2e-utils';
15
+ */ import { createBlockHelper, escapeId } from '@lowdefy/e2e-utils';
16
16
  import { expect } from '@playwright/test';
17
- const locator = (page, blockId)=>page.locator(`.ant-select:has(#${blockId}_input)`);
17
+ const locator = (page, blockId)=>page.locator(`.ant-select:has(#${escapeId(blockId)}_input)`);
18
18
  export default createBlockHelper({
19
19
  locator,
20
20
  do: {
@@ -12,9 +12,9 @@
12
12
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
13
  See the License for the specific language governing permissions and
14
14
  limitations under the License.
15
- */ import { createBlockHelper } from '@lowdefy/e2e-utils';
15
+ */ import { createBlockHelper, escapeId } from '@lowdefy/e2e-utils';
16
16
  import { expect } from '@playwright/test';
17
- const locator = (page, blockId)=>page.locator(`#${blockId}_input`);
17
+ const locator = (page, blockId)=>page.locator(`#${escapeId(blockId)}_input`);
18
18
  export default createBlockHelper({
19
19
  locator,
20
20
  do: {
@@ -12,16 +12,16 @@
12
12
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
13
  See the License for the specific language governing permissions and
14
14
  limitations under the License.
15
- */ import { createBlockHelper } from '@lowdefy/e2e-utils';
15
+ */ import { createBlockHelper, escapeId } from '@lowdefy/e2e-utils';
16
16
  import { expect } from '@playwright/test';
17
- const locator = (page, blockId)=>page.locator(`#bl-${blockId}`);
17
+ const locator = (page, blockId)=>page.locator(`#bl-${escapeId(blockId)}`);
18
18
  export default createBlockHelper({
19
19
  locator,
20
20
  do: {
21
21
  clickMenuItem: (page, blockId, menuItemText)=>locator(page, blockId).locator('.ant-menu-item').filter({
22
22
  hasText: menuItemText
23
23
  }).click(),
24
- clickLogo: (page, blockId)=>locator(page, blockId).locator(`#${blockId}_header`).locator('a').first().click()
24
+ clickLogo: (page, blockId)=>locator(page, blockId).locator(`#${escapeId(blockId)}_header`).locator('a').first().click()
25
25
  },
26
26
  expect: {
27
27
  menuItemActive: (page, blockId, menuItemText)=>expect(locator(page, blockId).locator('.ant-menu-item-selected').filter({
@@ -12,9 +12,9 @@
12
12
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
13
  See the License for the specific language governing permissions and
14
14
  limitations under the License.
15
- */ import { createBlockHelper } from '@lowdefy/e2e-utils';
15
+ */ import { createBlockHelper, escapeId } from '@lowdefy/e2e-utils';
16
16
  import { expect } from '@playwright/test';
17
- const locator = (page, blockId)=>page.locator(`#bl-${blockId}`);
17
+ const locator = (page, blockId)=>page.locator(`#bl-${escapeId(blockId)}`);
18
18
  export default createBlockHelper({
19
19
  locator,
20
20
  do: {
@@ -12,9 +12,9 @@
12
12
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
13
  See the License for the specific language governing permissions and
14
14
  limitations under the License.
15
- */ import { createBlockHelper } from '@lowdefy/e2e-utils';
15
+ */ import { createBlockHelper, escapeId } from '@lowdefy/e2e-utils';
16
16
  import { expect } from '@playwright/test';
17
- const locator = (page, blockId)=>page.locator(`#bl-${blockId} .ant-pagination`);
17
+ const locator = (page, blockId)=>page.locator(`#bl-${escapeId(blockId)} .ant-pagination`);
18
18
  export default createBlockHelper({
19
19
  locator,
20
20
  do: {
@@ -12,9 +12,9 @@
12
12
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
13
  See the License for the specific language governing permissions and
14
14
  limitations under the License.
15
- */ import { createBlockHelper } from '@lowdefy/e2e-utils';
15
+ */ import { createBlockHelper, escapeId } from '@lowdefy/e2e-utils';
16
16
  import { expect } from '@playwright/test';
17
- const locator = (page, blockId)=>page.locator(`#${blockId}`);
17
+ const locator = (page, blockId)=>page.locator(`#${escapeId(blockId)}`);
18
18
  export default createBlockHelper({
19
19
  locator,
20
20
  do: {
@@ -12,9 +12,9 @@
12
12
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
13
  See the License for the specific language governing permissions and
14
14
  limitations under the License.
15
- */ import { createBlockHelper } from '@lowdefy/e2e-utils';
15
+ */ import { createBlockHelper, escapeId } from '@lowdefy/e2e-utils';
16
16
  import { expect } from '@playwright/test';
17
- const locator = (page, blockId)=>page.locator(`#bl-${blockId} .ant-typography`);
17
+ const locator = (page, blockId)=>page.locator(`#bl-${escapeId(blockId)} .ant-typography`);
18
18
  export default createBlockHelper({
19
19
  locator,
20
20
  do: {
@@ -12,9 +12,9 @@
12
12
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
13
  See the License for the specific language governing permissions and
14
14
  limitations under the License.
15
- */ import { createBlockHelper } from '@lowdefy/e2e-utils';
15
+ */ import { createBlockHelper, escapeId } from '@lowdefy/e2e-utils';
16
16
  import { expect } from '@playwright/test';
17
- const locator = (page, blockId)=>page.locator(`#${blockId}_input`);
17
+ const locator = (page, blockId)=>page.locator(`#${escapeId(blockId)}_input`);
18
18
  export default createBlockHelper({
19
19
  locator,
20
20
  do: {
@@ -12,9 +12,9 @@
12
12
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
13
  See the License for the specific language governing permissions and
14
14
  limitations under the License.
15
- */ import { createBlockHelper } from '@lowdefy/e2e-utils';
15
+ */ import { createBlockHelper, escapeId } from '@lowdefy/e2e-utils';
16
16
  import { expect } from '@playwright/test';
17
- const locator = (page, blockId)=>page.locator(`#${blockId}_input`);
17
+ const locator = (page, blockId)=>page.locator(`#${escapeId(blockId)}_input`);
18
18
  export default createBlockHelper({
19
19
  locator,
20
20
  do: {
@@ -12,10 +12,10 @@
12
12
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
13
  See the License for the specific language governing permissions and
14
14
  limitations under the License.
15
- */ import { createBlockHelper } from '@lowdefy/e2e-utils';
15
+ */ import { createBlockHelper, escapeId } from '@lowdefy/e2e-utils';
16
16
  import { expect } from '@playwright/test';
17
17
  // Locator targets the trigger wrapper. The overlay is a portal (.ant-popover).
18
- const locator = (page, blockId)=>page.locator(`#bl-${blockId}`);
18
+ const locator = (page, blockId)=>page.locator(`#bl-${escapeId(blockId)}`);
19
19
  export default createBlockHelper({
20
20
  locator,
21
21
  do: {
@@ -12,9 +12,9 @@
12
12
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
13
  See the License for the specific language governing permissions and
14
14
  limitations under the License.
15
- */ import { createBlockHelper } from '@lowdefy/e2e-utils';
15
+ */ import { createBlockHelper, escapeId } from '@lowdefy/e2e-utils';
16
16
  import { expect } from '@playwright/test';
17
- const locator = (page, blockId)=>page.locator(`#${blockId}`);
17
+ const locator = (page, blockId)=>page.locator(`#${escapeId(blockId)}`);
18
18
  export default createBlockHelper({
19
19
  locator,
20
20
  expect: {
@@ -12,9 +12,9 @@
12
12
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
13
  See the License for the specific language governing permissions and
14
14
  limitations under the License.
15
- */ import { createBlockHelper } from '@lowdefy/e2e-utils';
15
+ */ import { createBlockHelper, escapeId } from '@lowdefy/e2e-utils';
16
16
  import { expect } from '@playwright/test';
17
- const locator = (page, blockId)=>page.locator(`#${blockId}_input`);
17
+ const locator = (page, blockId)=>page.locator(`#${escapeId(blockId)}_input`);
18
18
  export default createBlockHelper({
19
19
  locator,
20
20
  do: {
@@ -12,10 +12,10 @@
12
12
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
13
  See the License for the specific language governing permissions and
14
14
  limitations under the License.
15
- */ import { createBlockHelper } from '@lowdefy/e2e-utils';
15
+ */ import { createBlockHelper, escapeId } from '@lowdefy/e2e-utils';
16
16
  import { expect } from '@playwright/test';
17
- const locator = (page, blockId)=>page.locator(`#bl-${blockId} .ant-slider`);
18
- const handle = (page, blockId)=>page.locator(`#bl-${blockId} .ant-slider-handle`);
17
+ const locator = (page, blockId)=>page.locator(`#bl-${escapeId(blockId)} .ant-slider`);
18
+ const handle = (page, blockId)=>page.locator(`#bl-${escapeId(blockId)} .ant-slider-handle`);
19
19
  export default createBlockHelper({
20
20
  locator,
21
21
  do: {
@@ -12,9 +12,9 @@
12
12
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
13
  See the License for the specific language governing permissions and
14
14
  limitations under the License.
15
- */ import { createBlockHelper } from '@lowdefy/e2e-utils';
15
+ */ import { createBlockHelper, escapeId } from '@lowdefy/e2e-utils';
16
16
  import { expect } from '@playwright/test';
17
- const locator = (page, blockId)=>page.locator(`#bl-${blockId}`);
17
+ const locator = (page, blockId)=>page.locator(`#bl-${escapeId(blockId)}`);
18
18
  const resultLocator = (page, blockId)=>locator(page, blockId).locator('.ant-result');
19
19
  export default createBlockHelper({
20
20
  locator,
@@ -12,9 +12,9 @@
12
12
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
13
  See the License for the specific language governing permissions and
14
14
  limitations under the License.
15
- */ import { createBlockHelper } from '@lowdefy/e2e-utils';
15
+ */ import { createBlockHelper, escapeId } from '@lowdefy/e2e-utils';
16
16
  import { expect } from '@playwright/test';
17
- const locator = (page, blockId)=>page.locator(`.ant-select:has(#${blockId}_input)`);
17
+ const locator = (page, blockId)=>page.locator(`.ant-select:has(#${escapeId(blockId)}_input)`);
18
18
  export default createBlockHelper({
19
19
  locator,
20
20
  do: {
@@ -12,8 +12,8 @@
12
12
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
13
  See the License for the specific language governing permissions and
14
14
  limitations under the License.
15
- */ import { createBlockHelper } from '@lowdefy/e2e-utils';
16
- const locator = (page, blockId)=>page.locator(`#bl-${blockId} .ant-layout-sider`);
15
+ */ import { createBlockHelper, escapeId } from '@lowdefy/e2e-utils';
16
+ const locator = (page, blockId)=>page.locator(`#bl-${escapeId(blockId)} .ant-layout-sider`);
17
17
  export default createBlockHelper({
18
18
  locator
19
19
  });
@@ -12,10 +12,10 @@
12
12
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
13
  See the License for the specific language governing permissions and
14
14
  limitations under the License.
15
- */ import { createBlockHelper } from '@lowdefy/e2e-utils';
15
+ */ import { createBlockHelper, escapeId } from '@lowdefy/e2e-utils';
16
16
  import { expect } from '@playwright/test';
17
- const locator = (page, blockId)=>page.locator(`#bl-${blockId} .ant-slider`);
18
- const handle = (page, blockId)=>page.locator(`#bl-${blockId} .ant-slider-handle`);
17
+ const locator = (page, blockId)=>page.locator(`#bl-${escapeId(blockId)} .ant-slider`);
18
+ const handle = (page, blockId)=>page.locator(`#bl-${escapeId(blockId)} .ant-slider-handle`);
19
19
  export default createBlockHelper({
20
20
  locator,
21
21
  do: {
@@ -12,9 +12,9 @@
12
12
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
13
  See the License for the specific language governing permissions and
14
14
  limitations under the License.
15
- */ import { createBlockHelper } from '@lowdefy/e2e-utils';
15
+ */ import { createBlockHelper, escapeId } from '@lowdefy/e2e-utils';
16
16
  import { expect } from '@playwright/test';
17
- const locator = (page, blockId)=>page.locator(`#bl-${blockId}`);
17
+ const locator = (page, blockId)=>page.locator(`#bl-${escapeId(blockId)}`);
18
18
  export default createBlockHelper({
19
19
  locator,
20
20
  expect: {
@@ -12,9 +12,9 @@
12
12
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
13
  See the License for the specific language governing permissions and
14
14
  limitations under the License.
15
- */ import { createBlockHelper } from '@lowdefy/e2e-utils';
15
+ */ import { createBlockHelper, escapeId } from '@lowdefy/e2e-utils';
16
16
  import { expect } from '@playwright/test';
17
- const locator = (page, blockId)=>page.locator(`#${blockId}_input`);
17
+ const locator = (page, blockId)=>page.locator(`#${escapeId(blockId)}_input`);
18
18
  export default createBlockHelper({
19
19
  locator,
20
20
  do: {
@@ -12,9 +12,9 @@
12
12
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
13
  See the License for the specific language governing permissions and
14
14
  limitations under the License.
15
- */ import { createBlockHelper } from '@lowdefy/e2e-utils';
15
+ */ import { createBlockHelper, escapeId } from '@lowdefy/e2e-utils';
16
16
  import { expect } from '@playwright/test';
17
- const locator = (page, blockId)=>page.locator(`#bl-${blockId} .ant-tabs`);
17
+ const locator = (page, blockId)=>page.locator(`#bl-${escapeId(blockId)} .ant-tabs`);
18
18
  export default createBlockHelper({
19
19
  locator,
20
20
  do: {
@@ -12,9 +12,9 @@
12
12
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
13
  See the License for the specific language governing permissions and
14
14
  limitations under the License.
15
- */ import { createBlockHelper } from '@lowdefy/e2e-utils';
15
+ */ import { createBlockHelper, escapeId } from '@lowdefy/e2e-utils';
16
16
  import { expect } from '@playwright/test';
17
- const locator = (page, blockId)=>page.locator(`#bl-${blockId} .ant-tag`);
17
+ const locator = (page, blockId)=>page.locator(`#bl-${escapeId(blockId)} .ant-tag`);
18
18
  export default createBlockHelper({
19
19
  locator,
20
20
  expect: {
@@ -12,9 +12,9 @@
12
12
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
13
  See the License for the specific language governing permissions and
14
14
  limitations under the License.
15
- */ import { createBlockHelper } from '@lowdefy/e2e-utils';
15
+ */ import { createBlockHelper, escapeId } from '@lowdefy/e2e-utils';
16
16
  import { expect } from '@playwright/test';
17
- const locator = (page, blockId)=>page.locator(`#${blockId}_input`);
17
+ const locator = (page, blockId)=>page.locator(`#${escapeId(blockId)}_input`);
18
18
  export default createBlockHelper({
19
19
  locator,
20
20
  do: {
@@ -12,9 +12,9 @@
12
12
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
13
  See the License for the specific language governing permissions and
14
14
  limitations under the License.
15
- */ import { createBlockHelper } from '@lowdefy/e2e-utils';
15
+ */ import { createBlockHelper, escapeId } from '@lowdefy/e2e-utils';
16
16
  import { expect } from '@playwright/test';
17
- const locator = (page, blockId)=>page.locator(`#${blockId}_input`);
17
+ const locator = (page, blockId)=>page.locator(`#${escapeId(blockId)}_input`);
18
18
  export default createBlockHelper({
19
19
  locator,
20
20
  do: {
@@ -12,9 +12,9 @@
12
12
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
13
  See the License for the specific language governing permissions and
14
14
  limitations under the License.
15
- */ import { createBlockHelper } from '@lowdefy/e2e-utils';
15
+ */ import { createBlockHelper, escapeId } from '@lowdefy/e2e-utils';
16
16
  import { expect } from '@playwright/test';
17
- const locator = (page, blockId)=>page.locator(`#${blockId}`);
17
+ const locator = (page, blockId)=>page.locator(`#${escapeId(blockId)}`);
18
18
  export default createBlockHelper({
19
19
  locator,
20
20
  expect: {
@@ -12,9 +12,9 @@
12
12
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
13
  See the License for the specific language governing permissions and
14
14
  limitations under the License.
15
- */ import { createBlockHelper } from '@lowdefy/e2e-utils';
15
+ */ import { createBlockHelper, escapeId } from '@lowdefy/e2e-utils';
16
16
  import { expect } from '@playwright/test';
17
- const locator = (page, blockId)=>page.locator(`#${blockId}`);
17
+ const locator = (page, blockId)=>page.locator(`#${escapeId(blockId)}`);
18
18
  export default createBlockHelper({
19
19
  locator,
20
20
  expect: {
@@ -12,9 +12,9 @@
12
12
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
13
  See the License for the specific language governing permissions and
14
14
  limitations under the License.
15
- */ import { createBlockHelper } from '@lowdefy/e2e-utils';
15
+ */ import { createBlockHelper, escapeId } from '@lowdefy/e2e-utils';
16
16
  import { expect } from '@playwright/test';
17
- const locator = (page, blockId)=>page.locator(`#bl-${blockId} .ant-typography`);
17
+ const locator = (page, blockId)=>page.locator(`#bl-${escapeId(blockId)} .ant-typography`);
18
18
  export default createBlockHelper({
19
19
  locator,
20
20
  do: {
@@ -12,10 +12,10 @@
12
12
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
13
  See the License for the specific language governing permissions and
14
14
  limitations under the License.
15
- */ import { createBlockHelper } from '@lowdefy/e2e-utils';
15
+ */ import { createBlockHelper, escapeId } from '@lowdefy/e2e-utils';
16
16
  import { expect } from '@playwright/test';
17
17
  // Locator targets the trigger wrapper. The overlay is a portal (.ant-tooltip).
18
- const locator = (page, blockId)=>page.locator(`#bl-${blockId}`);
18
+ const locator = (page, blockId)=>page.locator(`#bl-${escapeId(blockId)}`);
19
19
  export default createBlockHelper({
20
20
  locator,
21
21
  do: {
@@ -12,9 +12,9 @@
12
12
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
13
  See the License for the specific language governing permissions and
14
14
  limitations under the License.
15
- */ import { createBlockHelper } from '@lowdefy/e2e-utils';
15
+ */ import { createBlockHelper, escapeId } from '@lowdefy/e2e-utils';
16
16
  import { expect } from '@playwright/test';
17
- const locator = (page, blockId)=>page.locator(`#bl-${blockId} .ant-tree`);
17
+ const locator = (page, blockId)=>page.locator(`#bl-${escapeId(blockId)} .ant-tree`);
18
18
  export default createBlockHelper({
19
19
  locator,
20
20
  do: {
@@ -12,10 +12,10 @@
12
12
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
13
  See the License for the specific language governing permissions and
14
14
  limitations under the License.
15
- */ import { createBlockHelper } from '@lowdefy/e2e-utils';
15
+ */ import { createBlockHelper, escapeId } from '@lowdefy/e2e-utils';
16
16
  import { expect } from '@playwright/test';
17
- const locator = (page, blockId)=>page.locator(`.ant-picker:has(#${blockId}_input)`);
18
- const input = (page, blockId)=>page.locator(`#${blockId}_input`);
17
+ const locator = (page, blockId)=>page.locator(`.ant-picker:has(#${escapeId(blockId)}_input)`);
18
+ const input = (page, blockId)=>page.locator(`#${escapeId(blockId)}_input`);
19
19
  export default createBlockHelper({
20
20
  locator,
21
21
  do: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lowdefy/blocks-antd",
3
- "version": "4.6.0",
3
+ "version": "4.7.0",
4
4
  "license": "Apache-2.0",
5
5
  "description": "Lowdefy Ant Design Blocks",
6
6
  "homepage": "https://lowdefy.com",
@@ -45,8 +45,8 @@
45
45
  ],
46
46
  "dependencies": {
47
47
  "@ant-design/icons": "4.8.0",
48
- "@lowdefy/block-utils": "4.6.0",
49
- "@lowdefy/helpers": "4.6.0",
48
+ "@lowdefy/block-utils": "4.7.0",
49
+ "@lowdefy/helpers": "4.7.0",
50
50
  "antd": "4.24.14",
51
51
  "classnames": "2.3.2",
52
52
  "moment": "2.29.4",
@@ -56,10 +56,10 @@
56
56
  "tinycolor2": "1.6.0"
57
57
  },
58
58
  "devDependencies": {
59
- "@lowdefy/block-dev-e2e": "4.6.0",
60
- "@lowdefy/e2e-utils": "4.6.0",
59
+ "@lowdefy/block-dev-e2e": "4.7.0",
60
+ "@lowdefy/e2e-utils": "4.7.0",
61
61
  "@playwright/test": "1.50.1",
62
- "@lowdefy/node-utils": "4.6.0",
62
+ "@lowdefy/node-utils": "4.7.0",
63
63
  "@swc/cli": "0.1.63",
64
64
  "@swc/core": "1.3.99",
65
65
  "copyfiles": "2.4.1"