-
Notifications
You must be signed in to change notification settings - Fork 159
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c6e8a9f
commit d1681f4
Showing
6 changed files
with
76 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
34 changes: 34 additions & 0 deletions
34
tests/e2e/cucumber/features/smoke/app-provider/urlJourneys.feature
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
Feature: url stability for mobile and desktop client | ||
As a user | ||
I want to work on different docs, sheets, slides etc.., using online office suites like Collabora or OnlyOffice | ||
To make sure that the file can be opened from the mobile and desktop client | ||
# To run this feature we need to run the external app-provider service along with wopi, OnlyOffice, Collabora services | ||
# This is a minimal test for the integration of ocis with different online office suites like Collabora and OnlyOffice | ||
# Check that the file can be opened in collabora or onlyoffice using the url. https://github.com/owncloud/web/issues/9897 | ||
|
||
|
||
Scenario: open office suite files with Collabora and onlyOffice | ||
Given "Admin" creates following users using API | ||
| id | | ||
| Alice | | ||
And "Alice" logs in | ||
And "Alice" creates the following files into personal space using API | ||
| pathToFile | content | | ||
| OpenDocument.odt | OpenDocument Content | | ||
And "Alice" creates the following resources | ||
| resource | type | content | | ||
| MicrosoftWord.docx | Microsoft Word | Microsoft Word Content | | ||
And "Alice" opens the "files" app | ||
|
||
# desktop feature | ||
When "Alice" opens the file "OpenDocument.odt" of space "personal" in Collabora through the URL for desktop client | ||
Then "Alice" should see the content "OpenDocument Content" in editor "Collabora" | ||
When "Alice" opens the file "MicrosoftWord.docx" of space "personal" in OnlyOffice through the URL for desktop client | ||
Then "Alice" should see the content "Microsoft Word Content" in editor "OnlyOffice" | ||
|
||
# # mobile feature | ||
When "Alice" opens the file "OpenDocument.odt" of space "personal" in Collabora through the URL for mobile client | ||
Then "Alice" should see the content "OpenDocument Content" in editor "Collabora" | ||
When "Alice" opens the file "MicrosoftWord.docx" of space "personal" in OnlyOffice through the URL for mobile client | ||
Then "Alice" should see the content "Microsoft Word Content" in editor "OnlyOffice" | ||
And "Alice" logs out |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export * from './openWithWeb' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import join from 'join-path' | ||
import { checkResponseStatus, request } from '../http' | ||
import { User } from '../../types' | ||
|
||
export const getOpenWithWebUrl = async ({ | ||
user, | ||
fileId, | ||
editorName | ||
}: { | ||
user: User | ||
fileId: string | ||
editorName: string | ||
}): Promise<string> => { | ||
const response = await request({ | ||
method: 'POST', | ||
path: join('app', 'open-with-web', `?file_id=${fileId}`, `&app_name=${editorName}`), | ||
user: user | ||
}) | ||
checkResponseStatus(response, 'Failed while getting url') | ||
const respBody = await response.json() | ||
return respBody.uri | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters