diff --git a/core/src/views/Setup.cy.ts b/core/src/views/Setup.cy.ts
index 1405937e5be3f..2338116a2712f 100644
--- a/core/src/views/Setup.cy.ts
+++ b/core/src/views/Setup.cy.ts
@@ -86,9 +86,13 @@ describe('Default setup page', () => {
cy.mockInitialState('core', 'config', config)
cy.mount(SetupView)
- // No DB radio selectors if only sqlite
cy.get('[data-cy-setup-form-field^="dbtype"]')
- .should('not.exist')
+ .should('exist')
+ .should('not.be.visible')
+ .find('input')
+ .should('be.checked')
+
+ cy.get('[data-cy-setup-form-field="dbtype-sqlite"]').should('exist')
// Two warnings: sqlite and single db support
cy.get('[data-cy-setup-form-db-note="sqlite"]')
@@ -96,10 +100,10 @@ describe('Default setup page', () => {
cy.get('[data-cy-setup-form-db-note="single-db"]')
.should('be.visible')
- // Admin login, password and data directory
+ // Admin login, password, data directory and db type
cy.get('[data-cy-setup-form-field]')
.should('be.visible')
- .should('have.length', 3)
+ .should('have.length', 4)
})
it('Renders single DB mysql', () => {
@@ -112,9 +116,11 @@ describe('Default setup page', () => {
cy.mockInitialState('core', 'config', config)
cy.mount(SetupView)
- // No DB radio selectors if only mysql
cy.get('[data-cy-setup-form-field^="dbtype"]')
- .should('not.exist')
+ .should('exist')
+ .should('not.be.visible')
+ .find('input')
+ .should('be.checked')
// Single db support warning
cy.get('[data-cy-setup-form-db-note="single-db"]')
@@ -126,11 +132,11 @@ describe('Default setup page', () => {
cy.get('[data-cy-setup-form-db-note="sqlite"]')
.should('not.exist')
- // Admin login, password, data directory, db user,
+ // Admin login, password, data directory, db type, db user,
// db password, db name and db host
cy.get('[data-cy-setup-form-field]')
.should('be.visible')
- .should('have.length', 7)
+ .should('have.length', 8)
})
it('Changes fields from sqlite to mysql then oci', () => {
diff --git a/core/src/views/Setup.vue b/core/src/views/Setup.vue
index d008780a556c1..259232a3efb23 100644
--- a/core/src/views/Setup.vue
+++ b/core/src/views/Setup.vue
@@ -89,7 +89,8 @@