19require_once(__DIR__ .
"/../../../../libs/composer/vendor/autoload.php");
20require_once(__DIR__ .
"/../../Base.php");
46 return new I\Counter\Factory();
48 public function button(): C\Button\Factory
50 return new I\Button\Factory($this->sig_gen);
54 return new I\Symbol\Factory(
55 new I\Symbol\Icon\Factory(),
56 new I\Symbol\Glyph\Factory(),
57 new I\Symbol\Avatar\Factory()
60 public function item(): C\Item\Factory
62 return new I\Item\Factory();
64 public function mainControls(): C\MainControls\Factory
66 return new I\MainControls\Factory(
68 new I\MainControls\Slate\Factory(
84 $expected_html = file_get_contents(__DIR__ .
"/../../Client/Item/Notification/NotificationItemTest.html");
86 $icon =
$f->symbol()->icon()->standard(
"name",
"aria_label",
"small",
false);
88 $item =
$f->item()->notification(
"item title", $icon)
89 ->withCloseAction(
"close_action");
91 $item2 = $item->withDescription(
"Existing Description")
92 ->withProperties([
"Label 1" =>
"Property Value 1",
"Label 2" =>
"Property Value 2"])
93 ->withAggregateNotifications([$item]);
94 $notification_slate =
$f->mainControls()->slate()->notification(
99 $glyph =
$f->symbol()->glyph()->notification()->withCounter($this->
getUIFactory()->counter()->novelty(2));
100 $notification_center =
$f->mainControls()->slate()->combined(
"notification center", $glyph)
101 ->withAdditionalEntry($notification_slate);
103 $this->metabar =
$f->mainControls()->metaBar()->withAdditionalEntry(
"Test Slate", $notification_center);
Provides common functionality for UI tests.
brutallyTrimHTML(string $html)
A more radical version of normalizeHTML.
getDefaultRenderer(JavaScriptBinding $js_binding=null, array $with_stub_renderings=[])
Checks if the HTML used for the Client tests is rendered as specified.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Class ChatMainBarProvider \MainMenu\Provider.