feat(cypress): add oracle to setup tests

Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
pull/52774/head
John Molakvoæ (skjnldsv) 2025-05-12 17:34:03 +07:00
parent a2eed985aa
commit 3500018b56
No known key found for this signature in database
GPG Key ID: 60C25B8C072916CF
3 changed files with 35 additions and 0 deletions

@ -182,6 +182,7 @@ export const applyChangesToNextcloud = async function() {
'./ocs', './ocs',
'./ocs-provider', './ocs-provider',
'./resources', './resources',
'./tests',
'./console.php', './console.php',
'./cron.php', './cron.php',
'./index.php', './index.php',

@ -85,6 +85,26 @@ describe('Can install Nextcloud', { testIsolation: true, retries: 0 }, () => {
sharedSetup() sharedSetup()
}) })
it('Oracle', () => {
cy.runCommand('cp /var/www/html/tests/databases-all-config.php /var/www/html/config/config.php')
cy.visit('/')
cy.get('[data-cy-setup-form]').should('be.visible')
cy.get('[data-cy-setup-form-field="adminlogin"]').should('be.visible')
cy.get('[data-cy-setup-form-field="adminpass"]').should('be.visible')
cy.get('[data-cy-setup-form-field="directory"]').should('have.value', '/var/www/html/data')
// Select the SQLite database
cy.get('[data-cy-setup-form-field="dbtype-oci"] input').check({ force: true })
// Fill in the DB form
cy.get('[data-cy-setup-form-field="dbuser"]').type('{selectAll}system')
cy.get('[data-cy-setup-form-field="dbpass"]').type('{selectAll}oracle')
cy.get('[data-cy-setup-form-field="dbname"]').type('{selectAll}FREE')
cy.get('[data-cy-setup-form-field="dbhost"]').type('{selectAll}oracle:1521')
sharedSetup()
})
}) })
/** /**

@ -0,0 +1,14 @@
<?php
/**
* SPDX-FileCopyrightText: 2025 Nextcloud GmbH and Nextcloud contributors
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
$CONFIG = [
'supportedDatabases' => [
'sqlite',
'mysql',
'pgsql',
'oci',
],
];