Skip to content

Commit

Permalink
[gui-tests-only] Unskip vfs tests (#10073)
Browse files Browse the repository at this point in the history
* wait for files to sync and unskip vfs tests

* remove unused step def
  • Loading branch information
saw-jan authored Sep 6, 2022
1 parent 2c084a7 commit f1c9cd4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
10 changes: 5 additions & 5 deletions test/gui/shared/steps/steps.py
Original file line number Diff line number Diff line change
Expand Up @@ -423,11 +423,6 @@ def step(context, type, resource):
waitForFileOrFolderToSync(context, resource, type)


@Given(r'user has waited for (file|folder) to be synced', regexp=True)
def step(context, type, resource):
waitForFileOrFolderToSync(context, resource, type)


@When(r'the user waits for (file|folder) "([^"]*)" to have sync error', regexp=True)
def step(context, type, resource):
waitForFileOrFolderToHaveSyncError(context, resource, type)
Expand All @@ -438,6 +433,11 @@ def step(context, type, resource):
waitForFileOrFolderToBeSyncIgnored(context, resource, type)


@Given('user has waited for the files to be synced')
def step(context):
waitForRootFolderToSync(context)


@Given(r'the user has waited for (file|folder) "([^"]*)" to be synced', regexp=True)
def step(context, type, resource):
waitForFileOrFolderToSync(context, resource, type)
Expand Down
4 changes: 3 additions & 1 deletion test/gui/tst_vfs/test.feature
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
@skip
Feature: Enable/disable virtual file support

As a user
Expand All @@ -9,6 +8,7 @@ Feature: Enable/disable virtual file support
Scenario: Enable VFS
Given user "Alice" has been created on the server with default attributes and without skeleton files
And user "Alice" has set up a client with default settings
And user has waited for the files to be synced
When the user enables virtual file support
Then the "Disable virtual file support..." button should be available
And VFS enabled baseline image should match the default screenshot
Expand All @@ -17,12 +17,14 @@ Feature: Enable/disable virtual file support
Scenario: VFS is disabled by default
Given user "Alice" has been created on the server with default attributes and without skeleton files
And user "Alice" has set up a client with default settings
And user has waited for the files to be synced
Then VFS enabled baseline image should not match the default screenshot


Scenario: Disable VFS
Given user "Alice" has been created on the server with default attributes and without skeleton files
And user "Alice" has set up a client with default settings
And user has waited for the files to be synced
And the user has enabled virtual file support
When the user disables virtual file support
Then the "Enable virtual file support (experimental)..." button should be available

0 comments on commit f1c9cd4

Please sign in to comment.