Browse Source

feat(playwright): Added tests for Phone number

pull/4552/head
Muhammed Mustafa 2 years ago
parent
commit
66b6d65041
  1. 19
      tests/playwright/tests/keyboardShortcuts.spec.ts

19
tests/playwright/tests/keyboardShortcuts.spec.ts

@ -120,6 +120,10 @@ test.describe('Verify shortcuts', () => {
title: 'Number',
type: 'Number',
});
await dashboard.grid.column.create({
title: 'PhoneNumber',
type: 'PhoneNumber',
});
await dashboard.grid.column.create({
title: 'SingleSelect',
type: 'SingleSelect',
@ -188,6 +192,15 @@ test.describe('Verify shortcuts', () => {
columnHeader: 'Number',
text: '123',
});
await dashboard.grid.cell.click({
index: 0,
columnHeader: 'PhoneNumber',
});
await dashboard.grid.cell.fillText({
index: 0,
columnHeader: 'PhoneNumber',
text: '987654321',
});
await dashboard.grid.cell.click({
index: 0,
columnHeader: 'Checkbox',
@ -254,6 +267,12 @@ test.describe('Verify shortcuts', () => {
});
expect(await dashboard.grid.cell.getClipboardText()).toBe('123');
await dashboard.grid.cell.copyToClipboard({
index: 0,
columnHeader: 'PhoneNumber',
});
expect(await dashboard.grid.cell.getClipboardText()).toBe('987654321');
await dashboard.grid.cell.copyToClipboard(
{
index: 0,

Loading…
Cancel
Save