Skip to content

Commit

Permalink
Run failed suites only
Browse files Browse the repository at this point in the history
  • Loading branch information
amrita-shrestha committed Sep 27, 2022
1 parent eb8073c commit 2bd7fee
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 91 deletions.
98 changes: 13 additions & 85 deletions .drone.star
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,11 @@ config = {
"oC10": {
"db": "mysql:5.5",
"earlyFail": True,
"skip": False,
"skip": True,
},
"oCIS": {
"earlyFail": True,
"skip": False,
"skip": True,
},
},
"acceptance": {
Expand Down Expand Up @@ -186,6 +186,7 @@ config = {
"EXPECTED_FAILURES_FILE": "%s/tests/acceptance/expected-failures-with-oc10-server-oauth2-login.md" % dir["web"],
},
"screenShots": True,
"skip": True,
},
# These suites have all or most of their scenarios expected to fail.
# Eliminate wasted CI time by not retrying the failing scenarios.
Expand All @@ -199,6 +200,7 @@ config = {
},
"screenShots": True,
"retry": False,
"skip": True,
},
"webUINotification": {
"type": NOTIFICATIONS,
Expand All @@ -214,6 +216,7 @@ config = {
},
"screenShots": True,
"notificationsAppNeeded": True,
"skip": True,
},
"webUIFederation": {
"type": FEDERATED,
Expand All @@ -228,6 +231,7 @@ config = {
"notificationsAppNeeded": True,
"federatedServerNeeded": True,
"federatedServerVersion": OC10_VERSION,
"skip": True,
},
"webUI-XGA-Notifications": {
"type": NOTIFICATIONS,
Expand All @@ -243,6 +247,7 @@ config = {
"SCREEN_RESOLUTION": "768x1024",
},
"notificationsAppNeeded": True,
"skip": True,
"filterTags": "@smokeTest and not @skipOnXGAPortraitResolution and not @skip and not @skipOnOC10 and not @notToImplementOnOC10",
},
"webUI-XGA": {
Expand Down Expand Up @@ -320,6 +325,7 @@ config = {
"EXPECTED_FAILURES_FILE": "%s/tests/acceptance/expected-failures-XGA-with-oc10-server-oauth2-login.md" % dir["web"],
"SCREEN_RESOLUTION": "768x1024",
},
"skip": True,
"filterTags": "@smokeTest and not @skipOnXGAPortraitResolution and not @skip and not @skipOnOC10 and not @notToImplementOnOC10",
},
"webUI-Notifications-iPhone": {
Expand All @@ -335,6 +341,7 @@ config = {
"EXPECTED_FAILURES_FILE": "%s/tests/acceptance/expected-failures-Iphone-oc10-server-oauth2-login.md" % dir["web"],
"SCREEN_RESOLUTION": "375x812",
},
"skip": True,
"notificationsAppNeeded": True,
"filterTags": "@smokeTest and not @skipOnIphoneResolution and not @skip and not @skipOnOC10 and not @notToImplementOnOC10",
},
Expand Down Expand Up @@ -413,6 +420,7 @@ config = {
"EXPECTED_FAILURES_FILE": "%s/tests/acceptance/expected-failures-Iphone-oc10-server-oauth2-login.md" % dir["web"],
"SCREEN_RESOLUTION": "375x812",
},
"skip": True,
"filterTags": "@smokeTest and not @skipOnIphoneResolution and not @skip and not @skipOnOC10 and not @notToImplementOnOC10",
},
"webUI-ocis": {
Expand All @@ -421,92 +429,10 @@ config = {
"",
],
"suites": {
"oCISBasic": [
"webUINotifications",
"webUIPrivateLinks",
"webUIPreview",
"webUIAccount",
"webUIWebdavLocks",
],
"webUIWebdavLockProtection": "oCISWebdavLockProtection",
"oCISSharingBasic": [
"webUISharingAcceptShares",
"webUIRestrictSharing",
"webUISharingNotifications",
],
"webUIFavorites": "oCISFavorites",
"oCISFiles1": [
"webUICreateFilesFolders",
"webUIDeleteFilesFolders",
"webUIFilesCopy",
"webUITextEditor",
],
"oCISFiles2": [
"webUIFilesList",
"webUIFilesDetails",
"webUIFilesSearch",
"webUIFilesActionMenu",
],
"oCISFiles3": [
"webUIRenameFiles",
"webUILogin",
],
"oCISFiles4": [
"webUIFiles",
"webUIRenameFolders",
],
"oCISSharingInternal1": [
"webUISharingInternalGroups",
"webUISharingInternalGroupsEdgeCases",
],
"oCISSharingInternal2": [
"webUISharingInternalUsers",
"webUISharingInternalUsersBlacklisted",
"webUISharingInternalUsersCollaborator",
],
"oCISSharingInternal3": [
"webUISharingInternalGroupsSharingIndicator",
"webUISharingInternalUsersSharingIndicator",
"webUISharingExpirationDate",
"webUISharingInternalUsersShareWithPage",
"webUIResharing1",
"webUIOperationsWithFolderShares",
],
"oCISSharingAutocompletion": [
"webUISharingAutocompletion",
],
"oCISSharingPerm1": [
"webUISharingPermissionsUsers",
"webUISharingFilePermissionsGroups",
],
"oCISSharingPerm2": [
"webUISharingFolderPermissionsGroups",
"webUISharingFolderAdvancedPermissionsGroups",
],
"oCISSharingPerm3": [
"webUISharingFilePermissionMultipleUsers",
"webUISharingFolderPermissionMultipleUsers",
"webUISharingFolderAdvancedPermissionMultipleUsers",
],
"oCISSharingAndUpload": [
"webUIResharing2",
"webUIUpload",
],
"oCISSharingPublic1": [
"webUISharingPublicBasic",
"webUISharingPublicExpire",
],
"oCISSharingPublic2": [
"webUISharingPublicDifferentRoles",
"webUISharingPublicManagement",
],
"oCISTrashbinUploadMoveJourney": [
"webUITrashbinDelete",
"webUITrashbinFilesFolders",
"webUITrashbinRestore",
"webUIMoveFilesFolders",
"webUIUserJourney",
],
},
"extraEnvironment": {
"NODE_TLS_REJECT_UNAUTHORIZED": "0",
Expand Down Expand Up @@ -540,6 +466,7 @@ config = {
"oc10IntegrationAppIncluded": True,
"notificationsAppNeeded": True,
"screenShots": True,
"skip": True,
},
"webUI-oc10-integration": {
"type": FULL,
Expand Down Expand Up @@ -618,6 +545,7 @@ config = {
"filterTags": "not @skip and not @skipOnOC10 and not @notToImplementOnOC10 and not @openIdLogin and @smokeTest",
"oc10IntegrationAppIncluded": True,
"screenShots": True,
"skip": True,
},
},
"build": True,
Expand Down Expand Up @@ -831,7 +759,7 @@ def stagePipelines(ctx):
unit_test_pipelines = unitTests(ctx)
e2e_pipelines = e2eTests(ctx)
acceptance_pipelines = acceptance(ctx)
return unit_test_pipelines + pipelinesDependsOn(e2e_pipelines + acceptance_pipelines, unit_test_pipelines)
return pipelinesDependsOn( acceptance_pipelines )

def afterPipelines(ctx):
return build(ctx) + notify()
Expand Down
1 change: 1 addition & 0 deletions tests/acceptance/features/webUIFilesSearch/search.feature
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@ Feature: Search

Scenario: Search for a file after name is changed
When the user renames file "lorem.txt" to "torem.txt" using the webUI
And the user has reloaded the current page of the webUI
And the user searches for "torem" using the webUI
Then file "lorem.txt" should not be listed on the webUI
And file "torem.txt" should be listed on the webUI
Expand Down
9 changes: 4 additions & 5 deletions tests/acceptance/pageObjects/webPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,9 @@ module.exports = {
.waitForElementVisible('@searchInputFieldHighResolution')
.setValue('@searchInputFieldHighResolution', [searchTerm, this.api.Keys.ENTER])
} else {
this.waitForElementVisible('@searchInputFieldHighResolution').setValue(
'@searchInputFieldHighResolution',
[searchTerm, this.api.Keys.ENTER]
)
this.waitForElementVisible('@searchInputFieldHighResolution')
.click('@searchInputFieldHighResolution')
.setValue('@searchInputFieldHighResolution', [searchTerm, this.api.Keys.ENTER])
}
}
)
Expand Down Expand Up @@ -288,7 +287,7 @@ module.exports = {
selector: '.oc-modal .oc-text-input-message'
},
searchInputFieldHighResolution: {
selector: '(//input[contains(@class, "oc-search-input")])[1]',
selector: '(//input[contains(@class, "oc-search-input")])',
locateStrategy: 'xpath'
},
searchInputFieldLowResolution: {
Expand Down
1 change: 0 additions & 1 deletion tests/acceptance/stepDefinitions/searchContext.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,5 @@ const { client } = require('nightwatch-api')
const { When } = require('@cucumber/cucumber')

When('the user searches for {string} using the webUI', async function (searchTerm) {
await client.pause(500)
await client.page.webPage().search(searchTerm)
})

0 comments on commit 2bd7fee

Please sign in to comment.