Skip to content

Commit

Permalink
Fix some problems passing the integration tests
Browse files Browse the repository at this point in the history
  • Loading branch information
aarranz committed May 20, 2019
1 parent 5457e70 commit e74219d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions src/wirecloud/commons/utils/remote.py
Original file line number Diff line number Diff line change
Expand Up @@ -936,7 +936,7 @@ def has_state(self, state):

def change_version(self, version):
super(WiringComponentTester, self).change_version(version)
WebDriverWait(self.testcase.driver, timeout=5).until(lambda driver: self.version == "v" + version)
WebDriverWait(self.testcase.driver, timeout=5).until(lambda driver: self.version == "v" + version)
return self


Expand Down Expand Up @@ -1138,7 +1138,7 @@ def title(self):

def change_position(self, endpoint):
new_index = endpoint.index
actions = ActionChains(self.testcase.driver).click_and_hold(self.element).move_to_element(endpoint.element).release().perform()
ActionChains(self.testcase.driver).click_and_hold(self.element).move_to_element(endpoint.element).release().perform()

WebDriverWait(self.testcase.driver, 3).until(lambda driver: self.index == new_index)
return self
Expand Down Expand Up @@ -1677,7 +1677,7 @@ def delete(self, expect_error=False):
if window_menus != 1:
self.testcase.fail('Error: marketplace was not deleted')

self.testcase.assertNotEqual(self.get_current_marketplace_name(), market)
WebDriverWait(self.testcase.driver, 3).until(lambda driver: self.get_current_marketplace_name() != market)

def search(self, keyword):
catalogue_base_element = self.wait_catalogue_ready()
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"type": "widget", "vendor": "Wirecloud", "name": "Test", "versions": [{"license": "", "contributors": [], "title": "Test", "licenseurl": "", "homepage": "", "description": "This widget is used to test some of the features of the Wirecloud platform", "changelog": "CHANGELOG.md", "uriTemplate": "http://wcatalogue.example.com/catalogue/media/Wirecloud/Test/1.0/Wirecloud_Test_1.0.wgt", "longdescription": "<p>This widget is used for <strong>testing</strong> some of the features provided by Wirecloud</p>", "doc": "http://wcatalogue.example.com/catalogue/media/Wirecloud/Test/1.0/doc/index.md", "email": "aarranz@conwet.com", "version": "1.0", "image": "http://wcatalogue.example.com/catalogue/media/Wirecloud/Test/1.0/images/catalogue.png", "authors": [{"name": "aarranz"}], "date": 1417631958883.257, "size": 41384, "id": 18, "permissions": {"uninstall": true, "delete": true}}]}
{"type": "widget", "vendor": "Wirecloud", "name": "Test", "versions": [{"license": "", "contributors": [], "title": "Test", "licenseurl": "", "homepage": "", "description": "This widget is used to test some of the features of the Wirecloud platform", "changelog": "CHANGELOG.md", "uriTemplate": "http://wcatalogue.example.com/catalogue/media/Wirecloud/Test/1.0/Wirecloud_Test_1.0.wgt", "longdescription": "<p>This widget is used for <strong>testing</strong> some of the features provided by Wirecloud</p>", "doc": "http://wcatalogue.example.com/catalogue/media/Wirecloud/Test/1.0/doc/index.md", "email": "aarranz@conwet.com", "version": "1.0", "image": "http://wcatalogue.example.com/catalogue/media/Wirecloud/Test/1.0/images/catalogue.png", "authors": [{"name": "aarranz"}], "date": 1417631958883.257, "size": 41384, "id": 18, "permissions": {"uninstall": false, "delete": false}}]}
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"type": "mashup", "vendor": "Wirecloud", "name": "test-mashup", "versions": [{"license": "", "contributors": [], "title": "Test Mashup", "licenseurl": "", "homepage": "", "description": "Wirecloud Mashup composed of: Test, Test", "changelog": "", "uriTemplate": "http://wcatalogue.example.com/catalogue/media/Wirecloud/test-mashup/1.0/Wirecloud_test-mashup_1.0.wgt", "longdescription": "Wirecloud Mashup composed of: Test, Test", "doc": "", "email": "wirecloud@conwet.com", "version": "1.0", "image": "http://wcatalogue.example.com/images/catalogue/widget_image.png", "authors": [{"name": "admin"}], "date": 1418139895196.074, "size": 747, "id": 22, "permissions": {"uninstall": true, "delete": true}}]}
{"type": "mashup", "vendor": "Wirecloud", "name": "test-mashup", "versions": [{"license": "", "contributors": [], "title": "Test Mashup", "licenseurl": "", "homepage": "", "description": "Wirecloud Mashup composed of: Test, Test", "changelog": "", "uriTemplate": "http://wcatalogue.example.com/catalogue/media/Wirecloud/test-mashup/1.0/Wirecloud_test-mashup_1.0.wgt", "longdescription": "Wirecloud Mashup composed of: Test, Test", "doc": "", "email": "wirecloud@conwet.com", "version": "1.0", "image": "http://wcatalogue.example.com/images/catalogue/widget_image.png", "authors": [{"name": "admin"}], "date": 1418139895196.074, "size": 747, "id": 22, "permissions": {"uninstall": false, "delete": false}}]}

0 comments on commit e74219d

Please sign in to comment.