diff options
author | Artur Neumann <artur@jankaritech.com> | 2021-05-10 14:03:54 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-10 14:03:54 +0300 |
commit | 6c9870abf9293868a45651b7cfba44f815e6a4e4 (patch) | |
tree | f416ea87d902643582d9e445c37a643665691069 /test | |
parent | 5910860538453056f67f0a5010c8e860966d5073 (diff) |
use expected to fail system (#8621)
Diffstat (limited to 'test')
-rw-r--r-- | test/gui/shared/steps/steps.py | 14 | ||||
-rw-r--r-- | test/gui/shared/verificationPoints/publicLinkPasswordProgressIndicatorInvisible | 93 | ||||
-rw-r--r-- | test/gui/tst_sharing/test.feature | 2 |
3 files changed, 103 insertions, 6 deletions
diff --git a/test/gui/shared/steps/steps.py b/test/gui/shared/steps/steps.py index b5f30427b..be63ecf86 100644 --- a/test/gui/shared/steps/steps.py +++ b/test/gui/shared/steps/steps.py @@ -432,13 +432,17 @@ def step(context): clickButton(waitForObject(names.oCC_ShareLinkWidget_checkBox_password_QCheckBox)) -@Then('the progress indicator should not be visible in the client-UI') +@Then('the password progress indicator should not be visible in the client-UI') def step(context): - test.compare( - waitForObjectExists(names.oCC_ShareLinkWidget_checkBox_password_QProgressIndicator).visible, - False - ) + waitFor(lambda: (test.vp( + "publicLinkPasswordProgressIndicatorInvisible" + ))) +@Then('the password progress indicator should not be visible in the client-UI - expected to fail') +def step(context): + waitFor(lambda: (test.xvp( + "publicLinkPasswordProgressIndicatorInvisible" + ))) @When('user "|any|" opens the sharing dialog of "|any|" using the client-UI') def step(context, receiver, resource): diff --git a/test/gui/shared/verificationPoints/publicLinkPasswordProgressIndicatorInvisible b/test/gui/shared/verificationPoints/publicLinkPasswordProgressIndicatorInvisible new file mode 100644 index 000000000..27f93dad6 --- /dev/null +++ b/test/gui/shared/verificationPoints/publicLinkPasswordProgressIndicatorInvisible @@ -0,0 +1,93 @@ +<?xml version='1.0' encoding='UTF-8' standalone='no'?> +<VerificationPoint type="Visual" version="5"> + <Description/> + <Verification object="oCC_ShareLinkWidget_checkBox_password_QProgressIndicator"> + <visual> + <ui version="1.0"> + <execution> + <state> + <element id="1790cb02503" class="QProgressIndicator"> + <image type="PNG">iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAACXBIWXMAAA7EAAAOxAGVKw4bAAAAIklEQVQ4jWN8//79fwYqAiZqGjZq4KiBowaOGjhq4FAyEACDpgP0OKH6SQAAAABJRU5ErkJggg==</image> + <superclass> + <class>QWidget</class> + <class>QObject</class> + </superclass> + <abstractProperties> + <visual isTopLevel="1"/> + <geometry isRelative="0"> + <x>2739</x> + <y>457</y> + <height>20</height> + <width>20</width> + </geometry> + </abstractProperties> + <properties> + <property name="focus"> + <string>false</string> + </property> + <property name="fullScreen"> + <string>false</string> + </property> + <property name="windowFilePath"/> + <property name="delay"> + <string>40</string> + </property> + <property name="toolTipDuration"> + <string>-1</string> + </property> + <property name="displayedWhenStopped"> + <string>false</string> + </property> + <property name="whatsThis"/> + <property name="focusPolicy"> + <string>0</string> + </property> + <property name="windowTitle"/> + <property name="windowOpacity"> + <string>1</string> + </property> + <property name="enabled"> + <string>true</string> + </property> + <property name="layoutDirection"> + <string>0</string> + </property> + <property name="isActiveWindow"> + <string>true</string> + </property> + <property name="statusTip"/> + <property name="windowIconText"/> + <property name="accessibleDescription"/> + <property name="styleSheet"/> + <property name="windowModality"> + <string>0</string> + </property> + <property name="autoFillBackground"> + <string>false</string> + </property> + <property name="tabletTracking"> + <string>false</string> + </property> + <property name="minimized"> + <string>false</string> + </property> + <property name="maximized"> + <string>false</string> + </property> + <property name="toolTip"/> + </properties> + <identifyingProperties> + <property name="accessibleName"/> + <property name="objectName"/> + </identifyingProperties> + </element> + </state> + </execution> + </ui> + <check type="identifying"/> + <check type="screenshot"> + <PropertyVerification element-id="1790cb02503"/> + </check> + </visual> + </Verification> +</VerificationPoint> diff --git a/test/gui/tst_sharing/test.feature b/test/gui/tst_sharing/test.feature index 3b568cb70..4bc34269a 100644 --- a/test/gui/tst_sharing/test.feature +++ b/test/gui/tst_sharing/test.feature @@ -22,7 +22,7 @@ Feature: Sharing When the user opens the public links dialog of "%client_sync_path%/textfile0.txt" using the client-UI And the user toggles the password protection using the client-UI And the user toggles the password protection using the client-UI - Then the progress indicator should not be visible in the client-UI + Then the password progress indicator should not be visible in the client-UI - expected to fail @issue-7423 Scenario: unshare a reshared file |