Skip to content

Commit

Permalink
OEL-3343: Fixed functional js test.
Browse files Browse the repository at this point in the history
  • Loading branch information
tibi2303 committed Sep 25, 2024
1 parent dd754b2 commit 2dafae8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#}

{{ pattern('copyright_overlay', {
content: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse vel mauris vitae ipsum blandit condimentum ut eget quam. Nunc eget nisi aliquam, accumsan sapien eu, blandit turpis...',
content: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse vel mauris vitae ipsum blandit condimentum ut eget quam.',
}) }}

{{ pattern('copyright_overlay', {
Expand Down
4 changes: 2 additions & 2 deletions tests/src/FunctionalJavascript/CopyClipboardTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,9 @@ public function testCopyToClipboard(): void {
};
');

$assert_session->elementExists('css', '[data-copy-target="#copy-selector"]')->click();
$assert_session->elementExists('css', '[data-copy-target]')->click();

$expectedText = '© Lorem ipsum amet John Doe on Doe Images';
$expectedText = 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse vel mauris vitae ipsum blandit condimentum ut eget quam.';
$actualText = $this->getSession()->evaluateScript('return window.copiedText;');

$this->assertEquals($expectedText, $actualText);
Expand Down

0 comments on commit 2dafae8

Please sign in to comment.