Skip to content

Commit

Permalink
test(e2e): fix positioner tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ifiokjr committed Jul 31, 2020
1 parent 654802b commit 54e5d5a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions support/e2e/src/positioner.e2e.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,14 @@ describe('Positioner', () => {
await $editor.type('This is text', { delay: 10 });
await expect($editor.innerHTML()).resolves.toMatchSnapshot();
const $bubbleMenu = await getByTestId($document, 'bubble-menu');
await expect($bubbleMenu.getAttribute('style')).resolves.toBe(
'bottom:99999px;left:-99999px;position:absolute',
);
await expect($bubbleMenu.getAttribute('style')).resolves.toBe('position:absolute');

await selectAll();
const $visibleBubbleMenu = await getByTestId($document, 'bubble-menu');
const newStyles = await $visibleBubbleMenu.getAttribute('style');
expect(newStyles).not.toInclude('99999px');
console.log(newStyles);
expect(newStyles).toInclude('bottom');
expect(newStyles).toInclude('left');

const $boldButton = await getByText($document, 'Bold');
await $boldButton.click();
Expand Down

0 comments on commit 54e5d5a

Please sign in to comment.