Skip to content

Commit 2a27937

Browse files
authored
tests: convert remaining part of link feature (#13648)
* test: convert remaining link feature file into playwright only Signed-off-by: nabim777 <nabinalemagar019@gmail.com> * test: add password policy env Signed-off-by: nabim777 <nabinalemagar019@gmail.com> --------- Signed-off-by: nabim777 <nabinalemagar019@gmail.com>
1 parent 0be51f3 commit 2a27937

16 files changed

Lines changed: 1150 additions & 303 deletions

File tree

.drone.star

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -77,20 +77,6 @@ config = {
7777
"spaces",
7878
],
7979
},
80-
"3": {
81-
"earlyFail": True,
82-
"skip": False,
83-
"tikaNeeded": True,
84-
"suites": [
85-
"shares",
86-
],
87-
"extraServerEnvironment": {
88-
"FRONTEND_FULL_TEXT_SEARCH_ENABLED": True,
89-
"SEARCH_EXTRACTOR_TYPE": "tika",
90-
"SEARCH_EXTRACTOR_TIKA_TIKA_URL": "http://tika:9998",
91-
"SEARCH_EXTRACTOR_CS3SOURCE_INSECURE": True,
92-
},
93-
},
9480
"keycloak": {
9581
"earlyFail": True,
9682
"skip": False,

tests/actions/.env.ocis

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,3 +130,9 @@ AUTH_BASIC_LDAP_BIND_PASSWORD=some-ldap-reva-password
130130
IDM_IDPSVC_PASSWORD=some-ldap-idp-password
131131
IDP_LDAP_BIND_PASSWORD=some-ldap-idp-password
132132
GRAPH_APPLICATION_ID=application-1
133+
OCIS_PASSWORD_POLICY_BANNED_PASSWORDS_LIST="$GITHUB_WORKSPACE/tests/drone/banned-passwords.txt"
134+
OCIS_PASSWORD_POLICY_MIN_CHARACTERS=3
135+
OCIS_PASSWORD_POLICY_MIN_LOWERCASE_CHARACTERS=0
136+
OCIS_PASSWORD_POLICY_MIN_UPPERCASE_CHARACTERS=0
137+
OCIS_PASSWORD_POLICY_MIN_DIGITS=0
138+
OCIS_PASSWORD_POLICY_MIN_SPECIAL_CHARACTERS=0

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

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ test.describe('Different file viewers', { tag: '@predefined-users' }, () => {
9696
})
9797

9898
// Then "Alice" is in a media-viewer
99-
await ui.userIsInFileViewer({
99+
await ui.userShouldBeInFileViewer({
100100
world,
101101
stepUser: 'Alice',
102102
fileViewerType: 'media-viewer'
@@ -116,7 +116,7 @@ test.describe('Different file viewers', { tag: '@predefined-users' }, () => {
116116
})
117117

118118
// Then "Alice" is in a media-viewer
119-
await ui.userIsInFileViewer({
119+
await ui.userShouldBeInFileViewer({
120120
world,
121121
stepUser: 'Alice',
122122
fileViewerType: 'media-viewer'
@@ -150,7 +150,7 @@ test.describe('Different file viewers', { tag: '@predefined-users' }, () => {
150150
})
151151

152152
// Then "Alice" is in a media-viewer
153-
await ui.userIsInFileViewer({
153+
await ui.userShouldBeInFileViewer({
154154
world,
155155
stepUser: 'Alice',
156156
fileViewerType: 'media-viewer'
@@ -170,7 +170,7 @@ test.describe('Different file viewers', { tag: '@predefined-users' }, () => {
170170
})
171171

172172
// Then "Alice" is in a media-viewer
173-
await ui.userIsInFileViewer({
173+
await ui.userShouldBeInFileViewer({
174174
world,
175175
stepUser: 'Alice',
176176
fileViewerType: 'media-viewer'
@@ -190,7 +190,7 @@ test.describe('Different file viewers', { tag: '@predefined-users' }, () => {
190190
})
191191

192192
// Then "Alice" is in a media-viewer
193-
await ui.userIsInFileViewer({
193+
await ui.userShouldBeInFileViewer({
194194
world,
195195
stepUser: 'Alice',
196196
fileViewerType: 'media-viewer'
@@ -210,7 +210,7 @@ test.describe('Different file viewers', { tag: '@predefined-users' }, () => {
210210
})
211211

212212
// Then "Alice" is in a media-viewer
213-
await ui.userIsInFileViewer({
213+
await ui.userShouldBeInFileViewer({
214214
world,
215215
stepUser: 'Alice',
216216
fileViewerType: 'media-viewer'
@@ -230,7 +230,7 @@ test.describe('Different file viewers', { tag: '@predefined-users' }, () => {
230230
})
231231

232232
// Then "Alice" is in a media-viewer
233-
await ui.userIsInFileViewer({
233+
await ui.userShouldBeInFileViewer({
234234
world,
235235
stepUser: 'Alice',
236236
fileViewerType: 'media-viewer'

tests/e2e-playwright/specs/navigation/shortcut.spec.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ test.describe(
115115
name: 'important file.url'
116116
})
117117
// Then "Alice" is in a text-editor
118-
await ui.userIsInFileViewer({
118+
await ui.userShouldBeInFileViewer({
119119
world,
120120
stepUser: 'Alice',
121121
fileViewerType: 'text-editor'
@@ -150,7 +150,7 @@ test.describe(
150150
name: 'logo.url'
151151
})
152152
// Then "Brian" is in a media-viewer
153-
await ui.userIsInFileViewer({
153+
await ui.userShouldBeInFileViewer({
154154
world,
155155
stepUser: 'Brian',
156156
fileViewerType: 'media-viewer'
@@ -182,7 +182,7 @@ test.describe(
182182
stepUser: 'Brian'
183183
})
184184
// Then "Brian" is in a text-editor
185-
await ui.userIsInFileViewer({
185+
await ui.userShouldBeInFileViewer({
186186
world,
187187
stepUser: 'Brian',
188188
fileViewerType: 'text-editor'

tests/e2e-playwright/specs/navigation/urlJourneys.spec.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ test.describe('Navigate web directly through urls', () => {
137137
})
138138

139139
// Then "Alice" is in a text-editor
140-
await ui.userIsInFileViewer({
140+
await ui.userShouldBeInFileViewer({
141141
world,
142142
stepUser: 'Alice',
143143
fileViewerType: 'text-editor'
@@ -182,7 +182,7 @@ test.describe('Navigate web directly through urls', () => {
182182
application: 'texteditor'
183183
})
184184
// Then "Alice" is in a text-editor
185-
await ui.userIsInFileViewer({
185+
await ui.userShouldBeInFileViewer({
186186
world,
187187
stepUser: 'Alice',
188188
fileViewerType: 'text-editor'
@@ -205,7 +205,7 @@ test.describe('Navigate web directly through urls', () => {
205205
application: 'texteditor'
206206
})
207207
// Then "Alice" is in a text-editor
208-
await ui.userIsInFileViewer({
208+
await ui.userShouldBeInFileViewer({
209209
world,
210210
stepUser: 'Alice',
211211
fileViewerType: 'text-editor'

tests/e2e-playwright/specs/ocm/ocm.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ test.describe('federation management', { tag: '@ocm' }, async () => {
211211
})
212212

213213
// Then "Brian" is in a media-viewer
214-
await ui.userIsInFileViewer({
214+
await ui.userShouldBeInFileViewer({
215215
world,
216216
stepUser: 'Brian',
217217
fileViewerType: 'media-viewer'
@@ -280,7 +280,7 @@ test.describe('federation management', { tag: '@ocm' }, async () => {
280280
})
281281

282282
// Then "Brian" is in a media-viewer
283-
await ui.userIsInFileViewer({
283+
await ui.userShouldBeInFileViewer({
284284
world,
285285
stepUser: 'Brian',
286286
fileViewerType: 'media-viewer'

0 commit comments

Comments
 (0)