Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
yurabakhtin committed Sep 4, 2023
1 parent 9fdf5f0 commit 9b76c23
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion tests/codeception/_support/AcceptanceTester.php
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ public function createFolder($title = 'test', $description = 'test description',
$this->fillField('Folder[description]', $description);

if($isPublic) {
$this->click('[for="folder-visibility"]');
$this->jsClick('input#folder-visibility');
}

$this->click('Save', '#globalModal');
Expand Down
4 changes: 2 additions & 2 deletions tests/codeception/acceptance/VisibilityCest.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public function testVisibility(AcceptanceTester $I)
$I->fillField('Folder[description]', 'visibility2');

$I->expect('The folder visibility to be private');
$I->waitForElement('[for="folder-visibility"] input[type=checkbox]:disabled');
$I->waitForElement('input#folder-visibility:disabled');

$I->click('Save', '#globalModal');
$I->waitForText('This folder is empty.');
Expand All @@ -55,7 +55,7 @@ public function testVisibility(AcceptanceTester $I)
$I->amGoingTo('set the folder visibility to public');
$I->clickFolderContext(3, 'Edit');
$I->waitForText('Edit folder', null, '#globalModal');
$I->click('[for="folder-visibility"]');
$I->jsClick('input#folder-visibility');
$I->click('Save', '#globalModal');
$I->waitForText('visibility2', null, '#fileList');

Expand Down

0 comments on commit 9b76c23

Please sign in to comment.