Skip to content

Commit ab31bda

Browse files
committed
test(photoalbums): wait for elements before clicking to avoid NoSuchElement in CI
1 parent dae4168 commit ab31bda

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/Browser/User/PhotoalbumsPluginTest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,13 +68,15 @@ private function index()
6868
->screenshot('user/photoalbums/index/images/index1');
6969

7070
$browser->visit('/plugin/photoalbums/changeDirectory/' . $this->test_frame->page_id . '/' . $this->test_frame->id . '/2#frame-' . $this->test_frame->id)
71+
->waitFor('#photo_1')
7172
->screenshot('user/photoalbums/index/images/index2');
7273

7374
$browser->click('#photo_1')
7475
->pause(500)
7576
->screenshot('user/photoalbums/index/images/index3');
7677

7778
$browser->visit('/plugin/photoalbums/changeDirectory/' . $this->test_frame->page_id . '/' . $this->test_frame->id . '/3#frame-' . $this->test_frame->id)
79+
->waitFor('#a_embed_code_check10')
7880
->click('#a_embed_code_check10')
7981
->pause(1000)
8082
->screenshot('user/photoalbums/index/images/index4');

0 commit comments

Comments
 (0)