Skip to content
Snippets Groups Projects
Verified Commit 3774e105 authored by Maarten de Waard's avatar Maarten de Waard :angel:
Browse files

working test for onlyoffice (given that you have a working onlyoffice with real certs)

parent 1765bee6
No related branches found
No related tags found
No related merge requests found
......@@ -19,13 +19,17 @@ Scenario: Login to nextcloud
And I expect that cookie "nc_token" exists
And I expect that cookie "nc_username" exists
Scenario: Create a new document
Scenario: Close welcome to nextcloud modal
Given the element "#firstrunwizard" is visible
When I click on the element "a.close.icon-close"
Then I expect that element "#firstrunwizard" is not visible
Scenario: Create a new document in OnlyOffice
When I click on the element ".actions a.button.new"
And I click on the element "[data-templatename="New Document.odt"]"
And I click on the element "[data-action='onlyofficeDocx']"
And I add a random string to the inputfield ".filenameform input[type=text]"
And I click on the element "input.icon-confirm"
And I pause for 100ms
And I click on the element ".oc-dialog-buttonrow button.primary"
Then I wait on element "iframe#richdocumentsframe" for 2000ms to be visible
Then I wait on element ".main-nav[role=navigation]" for 20000ms to be visible
Then I expect that the title is "New Document.odt - Files - Nextcloud"
And I focus the last opened tab
Then I expect a new tab has been opened
And I expect that element "div.type-error" does not exist
And I wait on element "iframe[name='frameEditor']" for 20000ms to be visible
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment