diff --git a/test/gui/shared/steps/account_context.py b/test/gui/shared/steps/account_context.py index d6fcca3a2b6..8f1512d84c4 100644 --- a/test/gui/shared/steps/account_context.py +++ b/test/gui/shared/steps/account_context.py @@ -180,9 +180,9 @@ def step(context): AccountConnectionWizard.acceptCertificate() -@Then('error "|any|" should be displayed') +@Then('the error "|any|" should be displayed in the account connection wizard') def step(context, errorMsg): - test.compare(AccountConnectionWizard.getErrorMessage(), errorMsg) + test.verify(errorMsg in AccountConnectionWizard.getErrorMessage()) @When('the user adds the server "|any|"') diff --git a/test/gui/shared/steps/sharing_context.py b/test/gui/shared/steps/sharing_context.py index 3a71b40db5f..70ee445a6c9 100644 --- a/test/gui/shared/steps/sharing_context.py +++ b/test/gui/shared/steps/sharing_context.py @@ -305,7 +305,7 @@ def step(context, permissions, user, resource): test.compare(shareChecked, False) -@Then('the error "|any|" should be displayed') +@Then('the error "|any|" should be displayed in the sharing dialog') def step(context, errorMessage): test.compare(SharingDialog.getErrorText(), errorMessage) diff --git a/test/gui/tst_addAccount/test.feature b/test/gui/tst_addAccount/test.feature index 804a47201bd..65d1419647b 100644 --- a/test/gui/tst_addAccount/test.feature +++ b/test/gui/tst_addAccount/test.feature @@ -49,7 +49,7 @@ Feature: adding accounts When the user adds the following wrong user credentials: | user | Alice | | password | 12345 | - Then error "Invalid credentials" should be displayed + Then the error "Invalid credentials" should be displayed in the account connection wizard Scenario: Adding account with self signed certificate for the first time diff --git a/test/gui/tst_sharing/test.feature b/test/gui/tst_sharing/test.feature index 442f1586e68..b794a3269be 100644 --- a/test/gui/tst_sharing/test.feature +++ b/test/gui/tst_sharing/test.feature @@ -78,11 +78,11 @@ Feature: Sharing And user "Alice" has set up a client with default settings When the user opens the sharing dialog of "textfile.txt" using the client-UI And the user searches for collaborator "Brian Murphy" using the client-UI - Then the error "No results for 'Brian Murphy'" should be displayed + Then the error "No results for 'Brian Murphy'" should be displayed in the sharing dialog When the user closes the sharing dialog And the user opens the sharing dialog of "SharedFolder" using the client-UI And the user searches for collaborator "Brian Murphy" using the client-UI - Then the error "No results for 'Brian Murphy'" should be displayed + Then the error "No results for 'Brian Murphy'" should be displayed in the sharing dialog And the user closes the sharing dialog @@ -92,11 +92,11 @@ Feature: Sharing And user "Alice" has set up a client with default settings When the user opens the sharing dialog of "textfile.txt" using the client-UI And the user selects "Alice Hansen" as collaborator of resource "textfile.txt" using the client-UI - Then the error "Can't share with yourself" should be displayed + Then the error "Can't share with yourself" should be displayed in the sharing dialog When the user closes the sharing dialog And the user opens the sharing dialog of "OwnFolder" using the client-UI And the user selects "Alice Hansen" as collaborator of resource "OwnFolder" using the client-UI - Then the error "Can't share with yourself" should be displayed + Then the error "Can't share with yourself" should be displayed in the sharing dialog And the user closes the sharing dialog @@ -200,10 +200,10 @@ Feature: Sharing And user "Alice" has shared folder "Folder" on the server with group "grp1" with "read, share, update" permission And user "Brian" has set up a client with default settings When the user tires to share resource "textfile0.txt" with the group "grp1" using the client-UI - Then the error "Path already shared with this group" should be displayed + Then the error "Path already shared with this group" should be displayed in the sharing dialog When the user closes the sharing dialog And the user tires to share resource "Folder" with the group "grp1" using the client-UI - Then the error "Path already shared with this group" should be displayed + Then the error "Path already shared with this group" should be displayed in the sharing dialog And the user closes the sharing dialog