aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobert Loehning <robert.loehning@qt.io>2020-05-07 13:26:44 +0200
committerRobert Loehning <robert.loehning@qt.io>2020-05-12 20:29:02 +0000
commita90ec2809c0fcdc240210a261cd7ae285bdffd0c (patch)
tree2dfb9d06797d5f3ac327adbdb0a3b31dadf4a678
parentb788c70b95b0cca589c68da77fc7dd1ad50dabc6 (diff)
Squish: Don't expect pastes to pastebin.com to appear in list
Change-Id: I02a73244e3aecad906f2c08b37d60ebe1880f534 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
-rw-r--r--tests/system/suite_tools/tst_codepasting/test.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/tests/system/suite_tools/tst_codepasting/test.py b/tests/system/suite_tools/tst_codepasting/test.py
index 4f1b4fedd3..42eb3ef8b0 100644
--- a/tests/system/suite_tools/tst_codepasting/test.py
+++ b/tests/system/suite_tools/tst_codepasting/test.py
@@ -129,7 +129,7 @@ def fetchSnippet(protocol, description, pasteId, skippedPasting):
closeHTTPStatusAndPasterDialog(protocol, ':PasteSelectDialog_CodePaster::PasteSelectDialog')
return -1
waitFor("pasteModel.rowCount() > 1", 20000)
- if (not skippedPasting and not any(map(lambda str:pasteId in str, dumpItems(pasteModel)))):
+ if (protocol != NAME_PBCOM and not skippedPasting and not any(map(lambda str:pasteId in str, dumpItems(pasteModel)))):
test.warning("Fetching too fast for server of %s - waiting 3s and trying to refresh." % protocol)
snooze(3)
clickButton("{text='Refresh' type='QPushButton' unnamed='1' visible='1' "
@@ -152,7 +152,11 @@ def fetchSnippet(protocol, description, pasteId, skippedPasting):
"Verify that line in list of pastes contains the description")
except:
if not skippedPasting:
- test.fail("Could not find id '%s' in list of pastes from %s" % (pasteId, protocol))
+ message = "Could not find id '%s' in list of pastes from %s" % (pasteId, protocol)
+ if protocol == NAME_PBCOM:
+ test.xfail(message, "pastebin.com does not show pastes in list anymore")
+ else:
+ test.fail(message)
foundSnippet = False
replaceEditorContent(waitForObject(":PasteSelectDialog.pasteEdit_QLineEdit"), pasteId)
if foundSnippet: