Skip to content

Commit 094dae7

Browse files
anon-pradipnirajacharya2
authored andcommitted
test: fix function names
1 parent c28a460 commit 094dae7

10 files changed

Lines changed: 149 additions & 168 deletions

File tree

.github/workflows/test.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ jobs:
7676
matrix:
7777
suites:
7878
- suite: part-1
79-
test_suites: admin-settings,spaces
79+
test_suites: admin-settings,spaces,journeys
8080
- suite: part-2
8181
test_suites: navigation,user-settings,app-store,file-action
8282
- suite: part-3
@@ -101,6 +101,7 @@ jobs:
101101
mfa: true
102102
- suite: keycloak
103103
feature_files: specs/admin-settings/spaces.spec.ts
104+
test_suites: journeys
104105
keycloak: true
105106
env:
106107
BASE_URL_OCIS: localhost:9200

tests/e2e-playwright/specs/app-provider/officeSuites.spec.ts

Lines changed: 20 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -208,14 +208,18 @@ test.describe('Integrate with online office suites like Collabora and OnlyOffice
208208
// When "Alice" updates following sharee role
209209
// | resource | recipient | type | role | resourceType |
210210
// | OpenDocument.odt | Brian | user | Can edit with trashbin | file |
211-
await ui.userUpdatesShareeRole({
211+
await ui.userUpdatesShareeRoles({
212212
world,
213213
stepUser: 'Alice',
214-
resource: 'OpenDocument.odt',
215-
recipient: 'Brian',
216-
type: 'user',
217-
role: 'Can edit with trashbin',
218-
resourceType: 'file'
214+
shares: [
215+
{
216+
resource: 'OpenDocument.odt',
217+
recipient: 'Brian',
218+
type: 'user',
219+
role: 'Can edit with trashbin',
220+
resourceType: 'file'
221+
}
222+
]
219223
})
220224

221225
// And "Alice" opens the following file in Collabora
@@ -509,14 +513,18 @@ test.describe('Integrate with online office suites like Collabora and OnlyOffice
509513
// When "Alice" updates following sharee role
510514
// | resource | recipient | type | role | resourceType |
511515
// | MicrosoftWord.docx | Brian | user | Can edit with trashbin | file |
512-
await ui.userUpdatesShareeRole({
516+
await ui.userUpdatesShareeRoles({
513517
world,
514518
stepUser: 'Alice',
515-
resource: 'MicrosoftWord.docx',
516-
recipient: 'Brian',
517-
type: 'user',
518-
role: 'Can edit with trashbin',
519-
resourceType: 'file'
519+
shares: [
520+
{
521+
resource: 'MicrosoftWord.docx',
522+
recipient: 'Brian',
523+
type: 'user',
524+
role: 'Can edit with trashbin',
525+
resourceType: 'file'
526+
}
527+
]
520528
})
521529

522530
// And "Alice" opens the following file in OnlyOffice

tests/e2e-playwright/specs/file-action/download.spec.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ test.describe('Download', { tag: '@predefined-users' }, () => {
8888
{ resource: 'emptyFolder', type: 'folder' },
8989
{ resource: 'testavatar.jpg', type: 'file' }
9090
]
91-
await ui.userDownloadsResource({
91+
await ui.userDownloadsResources({
9292
world,
9393
stepUser: 'Alice',
9494
resourceToDownload: resourceToDownloadInBatch,
@@ -109,7 +109,7 @@ test.describe('Download', { tag: '@predefined-users' }, () => {
109109
// | resource | type |
110110
// | testavatar.jpg | file |
111111
const downloadImage = [{ resource: 'testavatar.jpg', type: 'file' }]
112-
await ui.userDownloadsResource({
112+
await ui.userDownloadsResources({
113113
world,
114114
stepUser: 'Alice',
115115
resourceToDownload: downloadImage,
@@ -129,7 +129,7 @@ test.describe('Download', { tag: '@predefined-users' }, () => {
129129
// | folderPublic | folder |
130130
// | emptyFolder | folder |
131131
// | testavatar.jpg | file |
132-
await ui.userDownloadsResource({
132+
await ui.userDownloadsResources({
133133
world,
134134
stepUser: 'Brian',
135135
resourceToDownload: resourceToDownloadInBatch,
@@ -148,7 +148,7 @@ test.describe('Download', { tag: '@predefined-users' }, () => {
148148
{ resource: 'folderPublic', type: 'folder' },
149149
{ resource: 'emptyFolder', type: 'folder' }
150150
]
151-
await ui.userDownloadsResource({
151+
await ui.userDownloadsResources({
152152
world,
153153
stepUser: 'Brian',
154154
resourceToDownload: resourceToDownloadSidebar,
@@ -168,7 +168,7 @@ test.describe('Download', { tag: '@predefined-users' }, () => {
168168
// And "Brian" downloads the following resources using the preview topbar
169169
// | resource | type |
170170
// | testavatar.jpg | file |
171-
await ui.userDownloadsResource({
171+
await ui.userDownloadsResources({
172172
world,
173173
stepUser: 'Brian',
174174
resourceToDownload: downloadImage,

0 commit comments

Comments
 (0)