Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion REUSE.toml
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ SPDX-FileCopyrightText = "2020 Nextcloud GmbH and Nextcloud contributors"
SPDX-License-Identifier = "AGPL-3.0-or-later"

[[annotations]]
path = ["cypress/tsconfig.json", "dist/icons.css"]
path = ["cypress/tsconfig.json", "cypress/fixtures/appstore/apps.json", "dist/icons.css"]
precedence = "aggregate"
SPDX-FileCopyrightText = "2022 Nextcloud GmbH and Nextcloud contributors"
SPDX-License-Identifier = "AGPL-3.0-or-later"
Expand Down
3 changes: 3 additions & 0 deletions cypress/e2e/core/setup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,9 @@ describe('Can install Nextcloud', { testIsolation: true, retries: 0 }, () => {
function sharedSetup() {
const randAdmin = 'admin-' + Math.random().toString(36).substring(2, 15)

// mock appstore
cy.intercept('**/settings/apps/list', { fixture: 'appstore/apps.json' })

// Fill in the form
cy.get('[data-cy-setup-form-field="adminlogin"]').type(randAdmin)
cy.get('[data-cy-setup-form-field="adminpass"]').type(randAdmin)
Expand Down
46 changes: 46 additions & 0 deletions cypress/fixtures/appstore/apps.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
{
"apps": [
{
"id": "calendar",
"name": "Calendar",
"isCompatible": true,
"canInstall": true
},
{
"id": "contacts",
"name": "Contacts",
"isCompatible": true,
"canInstall": true
},
{
"id": "mail",
"name": "Mail",
"isCompatible": true,
"canInstall": true
},
{
"id": "spreed",
"name": "Talk",
"isCompatible": true,
"canInstall": true
},
{
"id": "richdocuments",
"name": "Richdocuments",
"isCompatible": true,
"canInstall": true
},
{
"id": "notes",
"name": "Notes",
"isCompatible": true,
"canInstall": true
},
{
"id": "richdocumentscode",
"name": "Richdocuments Code",
"isCompatible": true,
"canInstall": true
}
]
}
Loading