Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test cy.runCommand and cy.runOccCommand #731

Merged
merged 1 commit into from
Jan 8, 2025
Merged

Conversation

max-nextcloud
Copy link
Contributor

No description provided.

Comment on lines 8 to 9
cy.runOccCommand('app:list').then(output => {
expect(output.stdout).to.contain('viewer')
Copy link
Contributor Author

@max-nextcloud max-nextcloud Jan 8, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Funny... passes locally for me but fails on CI because the app list does not include viewer.

Cotent of output.stdout in the failed test
Enabled:
 - cloud_federation_api: 1.14.0
 - comments: 1.21.0
 - contactsinteraction: 1.12.0
 - dashboard: 7.11.0
 - dav: 1.32.0
 - federatedfilesharing: 1.21.0
 - federation: 1.21.0
 - files: 2.3.0
 - files_reminders: 1.4.0
 - files_sharing: 1.23.0
 - files_trashbin: 1.21.0
 - files_versions: 1.24.0
 - lookup_server_connector: 1.19.0
 - oauth2: 1.19.0
 - provisioning_api: 1.21.0
 - settings: 1.14.0
 - sharebymail: 1.21.0
 - systemtags: 1.21.0
 - theming: 2.6.0
 - twofactor_backupcodes: 1.20.0
 - updatenotification: 1.21.0
 - user_status: 1.11.0
 - weather_status: 1.11.0
 - workflowengine: 2.13.0
Disabled:
 - admin_audit: 1.21.0
 - encryption: 2.19.0
 - files_external: 1.23.0
 - testing: 1.21.0
 - user_ldap: 1.22.0
 - webhook_listeners: 1.2.0'

Looks like something does not work during the setup of viewer on CI:

grafik

This seems unrelated to the PR so I will change this to check for files and settings which should always be around.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like github sets an environment variable BRANCH that matches the target branch of the PR - but we use it as the server branch for the container.
grafik

max-nextcloud added a commit that referenced this pull request Jan 8, 2025
BRANCH is main in PRs against a main branch
for example in apps that use that naming scheme
and in `@nextcloud/cypress` itself.

See #731 (review)
@max-nextcloud
Copy link
Contributor Author

0047266 was an attempt at a fix for the branch issue - but that should be discussed separately. So reverting this to the approved state to then merge ahead.

@max-nextcloud max-nextcloud merged commit 4827fbb into main Jan 8, 2025
23 checks passed
@max-nextcloud max-nextcloud deleted the test/docker-commands branch January 8, 2025 10:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants