Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
peter-mw committed Feb 14, 2022
1 parent 1d22344 commit 950cd8f
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions tests/Browser/Multilanguage/LiveEditMultilanguageTest.php
Expand Up @@ -13,7 +13,6 @@

class LiveEditMultilanguageTest extends DuskTestCase
{
public $siteUrl = 'http://127.0.0.1:8000/';

public function testLiveEditNewPageSave()
{
Expand Down Expand Up @@ -43,11 +42,11 @@ public function testLiveEditNewPageSave()
$browser->pause(5000);

$randClassForDagAndDrop = 'rand-class-' . time();
$browser->script("$('.edit .container .mw-empty-element').addClass('$randClassForDagAndDrop')");
$browser->script("$('.edit[rel=\"content\"][field=\"content\"]').find('div').last().addClass('$randClassForDagAndDrop')");
$browser->pause(1000);
$browser->click('.' . $randClassForDagAndDrop);

$browser->type('.' . $randClassForDagAndDrop, 'This is my text on english language');
$browser->typeSlowly('.' . $randClassForDagAndDrop, 'This is my text on english language');

$browser->click('#main-save-btn');
$browser->pause(5000);
Expand All @@ -61,14 +60,14 @@ public function testLiveEditNewPageSave()
$browser->pause(3000);

$randClassForWrite = 'rand-class-' . time();
$browser->script("$('.edit .mw-empty-element').addClass('$randClassForWrite')");
$browser->script("$('.edit[rel=\"content\"][field=\"content\"]').find('div').last().addClass('$randClassForWrite')");
$browser->pause(3000);


$browser->click('.' . $randClassForWrite);

$browser->pause(3000);
$browser->type('.' . $randClassForWrite, 'Текст написан на български, това е българска страница');
$browser->typeSlowly('.' . $randClassForWrite, 'Текст написан на български, това е българска страница');
$browser->click('#main-save-btn');
$browser->pause(5000);

Expand Down

0 comments on commit 950cd8f

Please sign in to comment.