19require_once(__DIR__ .
"/../../../../../../vendor/composer/vendor/autoload.php");
20require_once(__DIR__ .
"/../../Base.php");
40 $this->sig_gen =
new I\SignalGenerator();
48 public function counter(): I\Counter\Factory
50 return new I\Counter\Factory();
52 public function button(): I\Button\Factory
54 return new I\Button\Factory();
56 public function symbol(): I\Symbol\Factory
58 return new I\Symbol\Factory(
59 new I\Symbol\Icon\Factory(),
60 new I\Symbol\Glyph\Factory(),
61 new I\Symbol\Avatar\Factory()
64 public function item(): I\Item\Factory
66 return new I\Item\Factory();
68 public function mainControls(): I\MainControls\Factory
70 return new I\MainControls\Factory(
72 new I\MainControls\Slate\Factory(
88 $expected_html = file_get_contents(__DIR__ .
"/../../Client/Item/Notification/NotificationItemTest.html");
90 $icon =
$f->symbol()->icon()->standard(
"name",
"aria_label",
"small",
false);
92 $item =
$f->item()->notification(
"item title", $icon)
93 ->withCloseAction(
"close_action");
95 $item2 = $item->withDescription(
"Existing Description")
96 ->withProperties([
"Label 1" =>
"Property Value 1",
"Label 2" =>
"Property Value 2"])
97 ->withAggregateNotifications([$item]);
98 $notification_slate =
$f->mainControls()->slate()->notification(
103 $glyph =
$f->symbol()->glyph()->notification()->withCounter($this->
getUIFactory()->counter()->novelty(2));
104 $notification_center =
$f->mainControls()->slate()->combined(
"notification center", $glyph)
105 ->withAdditionalEntry($notification_slate);
107 $this->metabar =
$f->mainControls()->metaBar()->withAdditionalEntry(
"Test Slate", $notification_center);
108 $rendered_html = $this->getDefaultRenderer()->render($this->metabar);
110 $this->assertEquals($this->brutallyTrimHTML($expected_html), $this->brutallyTrimHTML($rendered_html));
Provides common functionality for UI tests.
Checks if the HTML used for the Client tests is rendered as specified.
C MainControls MetaBar $metabar
button(string $caption, string $cmd)
Interface Observer \BackgroundTasks Contains several chained tasks and infos about them.