Skip to content

Commit

Permalink
build: debugging clicktest
Browse files Browse the repository at this point in the history
  • Loading branch information
zarend committed Apr 18, 2024
1 parent fca6d7a commit cd50fb9
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions src/cdk/testing/tests/cross-environment.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -428,10 +428,17 @@ export function crossEnvironmentSpecs(

it('should be able to click at a specific position with shift and meta modifiers', async () => {
const clickTest = await harness.clickTest();
console.log('clickTest', clickTest);
const modifiersResult = await harness.clickModifiersResult();
console.log('modifiersResult', modifiersResult);

await clickTest.click(10, 10, {shift: true, meta: true});
expect(await modifiersResult.text()).toBe('shift---meta');
const click = await clickTest.click(10, 10, {shift: true, meta: true});
console.log('click', click);

const modifiersText = await modifiersResult.text();
console.log('modifiersText', modifiersText);

expect(modifiersText).toBe('shift---meta');
});

it('should be able to click the center of an element', async () => {
Expand Down

0 comments on commit cd50fb9

Please sign in to comment.