From 8f21effd9fb45cfb61ffb6f523e46be4d0f8ba47 Mon Sep 17 00:00:00 2001 From: Asaf Korem Date: Sat, 12 Oct 2024 13:49:39 +0300 Subject: [PATCH] docs: fix `system` expectations usage examples. See issue: #4606. --- docs/api/system.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/api/system.md b/docs/api/system.md index c1a6c9829b..4e9e7610b5 100644 --- a/docs/api/system.md +++ b/docs/api/system.md @@ -70,7 +70,7 @@ System expectations are used to assert the state of elements within the system: Asserts that the element exists. ```js -await system.element(by.system.label('Allow')).toExist(); +await expect(system.element(by.system.label('Allow'))).toExist(); ``` ### `not` @@ -78,7 +78,7 @@ await system.element(by.system.label('Allow')).toExist(); Negates the expectation. ```js -await system.element(by.system.label('Allow')).not.toExist(); +await expect(system.element(by.system.label('Allow'))).not.toExist(); ``` [`by.system.label(label)`]: #bysystemlabellabel