Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/merge-master-to-develop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,4 +59,5 @@ jobs:
if git rev-parse -q --verify MERGE_HEAD > /dev/null; then
git merge --abort
fi
exit 1
fi
5 changes: 4 additions & 1 deletion tests/functional/viewonline_test.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,14 @@ public function test_viewonline_setup()
public function test_viewonline_check($page_title)
{
// Create user1 and send them to the Viewonline
self::$client->restart();
$this->create_user('user1');
$this->login('user1');
// PHP goes faster than DBMS, make sure session data got written to the database.
sleep(1);
$crawler = self::request('GET', "viewonline.php?sid={$this->sid}");

// Is admin still viewing the test page
// Is admin still viewing the test page?
self::assertStringContainsString('admin', $crawler->filter('#page-body table.table1')->text());

$session_entries = $crawler->filter('#page-body table.table1 tr')->count();
Expand Down
Loading