mirror of
https://github.com/nextcloud/server.git
synced 2026-02-18 18:28:50 -05:00
feat(cypress): add oracle to setup tests
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
This commit is contained in:
parent
a2eed985aa
commit
3500018b56
3 changed files with 35 additions and 0 deletions
|
|
@ -182,6 +182,7 @@ export const applyChangesToNextcloud = async function() {
|
|||
'./ocs',
|
||||
'./ocs-provider',
|
||||
'./resources',
|
||||
'./tests',
|
||||
'./console.php',
|
||||
'./cron.php',
|
||||
'./index.php',
|
||||
|
|
|
|||
|
|
@ -85,6 +85,26 @@ describe('Can install Nextcloud', { testIsolation: true, retries: 0 }, () => {
|
|||
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()
|
||||
})
|
||||
|
||||
})
|
||||
|
||||
/**
|
||||
|
|
|
|||
14
tests/databases-all-config.php
Normal file
14
tests/databases-all-config.php
Normal file
|
|
@ -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',
|
||||
],
|
||||
];
|
||||
Loading…
Reference in a new issue