Skip to content

Commit 3cee1de

Browse files
committed
feat(cypress): add oracle to setup tests
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
1 parent a2eed98 commit 3cee1de

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

cypress/e2e/core/setup.ts

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,26 @@ describe('Can install Nextcloud', { testIsolation: true, retries: 0 }, () => {
8585
sharedSetup()
8686
})
8787

88+
it('Oracle', () => {
89+
cy.runCommand('cp /var/www/html/tests/databases-all-config.php /var/www/html/config/config.php')
90+
cy.visit('/')
91+
cy.get('[data-cy-setup-form]').should('be.visible')
92+
cy.get('[data-cy-setup-form-field="adminlogin"]').should('be.visible')
93+
cy.get('[data-cy-setup-form-field="adminpass"]').should('be.visible')
94+
cy.get('[data-cy-setup-form-field="directory"]').should('have.value', '/var/www/html/data')
95+
96+
// Select the SQLite database
97+
cy.get('[data-cy-setup-form-field="dbtype-oci"] input').check({ force: true })
98+
99+
// Fill in the DB form
100+
cy.get('[data-cy-setup-form-field="dbuser"]').type('{selectAll}system')
101+
cy.get('[data-cy-setup-form-field="dbpass"]').type('{selectAll}oracle')
102+
cy.get('[data-cy-setup-form-field="dbname"]').type('{selectAll}FREE')
103+
cy.get('[data-cy-setup-form-field="dbhost"]').type('{selectAll}oracle:1521')
104+
105+
sharedSetup()
106+
})
107+
88108
})
89109

90110
/**

0 commit comments

Comments
 (0)