You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Add tests for Connections Pane including accessing data sources and managing #18429
The goal is to test the Connections Pane. This include
Making connections
Checking the database tree UI
Managing drivers
Installing drivers (this is a pro-only feature)
Proposed Behaviour
Create Playwright tests for these. The challenge will be in having a live test database available.
QA Notes
Once you have opened a PR, add additional information for QA on how to validate the change, paying special attention to the level of risk, adjacent areas that could be affected by the change, and any important contextual information not present in the original description.
changed the title [-]Add tests for Connections Pane including managing and installing drivers[/-][+]Add tests for Connections Pane including accessing data sources and managing[/+]on Aug 13, 2026
No server, no manual database creation -- the driver just opens a file the suite creates itself.
PostgreSQL
brew install unixodbc psqlodbc postgresql@17 (any postgresql@N works -- it's just for the server binaries)
If Postgres won't start with a postmaster became multithreaded during startup error, set export LC_ALL=en_US.UTF-8 LANG=en_US.UTF-8 in your shell profile
npm ci (skip if already done)
npx playwright test tests/panes/connections/
The suite starts and stops its own throwaway server on port 55432 -- you never run pg_ctl/brew services start yourself.
Windows
SQLite
Download and silently install the driver: https://ch-werner.hier-im-netz.de/sqliteodbc/sqliteodbc_w64.exe (SQLite itself has no official ODBC driver; this third-party project is the de facto standard, and the same source this repo's own CI scripts use)
npm ci (skip if already done)
npx playwright test tests/panes/connections/
No server needed -- the driver just opens a file the suite creates itself. (Windows has a built-in ODBC driver manager, so there's no unixODBC-equivalent to install.)
PostgreSQL
Install the server and driver: choco install postgresql psqlodbc (or the EDB installer from postgresql.org, which bundles both)
npm ci (skip if already done)
npx playwright test tests/panes/connections/
The suite starts and stops its own throwaway server using the installed binaries -- you never start the Windows service yourself. If initdb.exe isn't found via PATH or a PGBIN environment variable, it falls back to searching Program Files\PostgreSQL.
Linux (Debian/Ubuntu)
SQLite
sudo apt-get install unixodbc libsqliteodbc
npm ci (skip if already done)
npx playwright test tests/panes/connections/
No server, no manual database creation -- the driver just opens a file the suite creates itself.
PostgreSQL
sudo apt-get install unixodbc odbc-postgresql postgresql (skip postgresql if a server is already installed -- only the binaries are needed, the service can stay stopped)
npm ci (skip if already done)
npx playwright test tests/panes/connections/
The suite starts and stops its own throwaway server -- you never run systemctl start postgresql yourself.
Fedora
SQLite
sudo dnf install -y unixODBC unixODBC-devel sqlite-devel gcc make tar
Build the driver from source (Fedora's own packaged sqliteodbc crashes R at runtime):
curl -fsSL -o sqliteodbc.tar.gz https://ch-werner.hier-im-netz.de/sqliteodbc/sqliteodbc-0.99991.tar.gz
tar -xzf sqliteodbc.tar.gz &&cd sqliteodbc-0.99991
CFLAGS="-std=gnu17 -Wno-error=implicit-function-declaration -Wno-error=implicit-int -Wno-error=incompatible-pointer-types -Wno-error=int-conversion" \
./configure --prefix=/usr --libdir=/usr/lib64 --build="$(uname -m)-unknown-linux-gnu"
make && sudo make install
npm ci (skip if already done)
npx playwright test tests/panes/connections/
PostgreSQL
sudo dnf install -y --allowerasing unixODBC unixODBC-devel postgresql-odbc gcc make tar (add postgresql-server if no server binaries exist yet)
npm ci (skip if already done)
npx playwright test tests/panes/connections/
RHEL / Rocky
Same as Fedora, but drop --allowerasing (Fedora-only, for a container-image conflict) -- and note there's no packaged sqliteodbc at all here either, so the same source-build steps apply.
If both drivers are installed for a platform, the same command run in either section exercises both engines; a target skips with a reason if its driver isn't found.
Activity
ronblum commentedon Aug 13, 2026
Opened #12262 to cover the pro features, focusing on open-source for this issue:
Making connections
Checking the database tree UI
Managing drivers
[-]Add tests for Connections Pane including managing and installing drivers[/-][+]Add tests for Connections Pane including accessing data sources and managing[/+]ronblum commentedon Aug 28, 2026
Running locally
macOS
SQLite
brew install unixodbc sqliteodbcnpm ci(skip if already done)npx playwright test tests/panes/connections/No server, no manual database creation -- the driver just opens a file the suite creates itself.
PostgreSQL
brew install unixodbc psqlodbc postgresql@17(anypostgresql@Nworks -- it's just for the server binaries)postmaster became multithreaded during startuperror, setexport LC_ALL=en_US.UTF-8 LANG=en_US.UTF-8in your shell profilenpm ci(skip if already done)npx playwright test tests/panes/connections/The suite starts and stops its own throwaway server on port 55432 -- you never run
pg_ctl/brew services startyourself.Windows
SQLite
https://ch-werner.hier-im-netz.de/sqliteodbc/sqliteodbc_w64.exe(SQLite itself has no official ODBC driver; this third-party project is the de facto standard, and the same source this repo's own CI scripts use)npm ci(skip if already done)npx playwright test tests/panes/connections/No server needed -- the driver just opens a file the suite creates itself. (Windows has a built-in ODBC driver manager, so there's no unixODBC-equivalent to install.)
PostgreSQL
choco install postgresql psqlodbc(or the EDB installer from postgresql.org, which bundles both)npm ci(skip if already done)npx playwright test tests/panes/connections/The suite starts and stops its own throwaway server using the installed binaries -- you never start the Windows service yourself. If
initdb.exeisn't found viaPATHor aPGBINenvironment variable, it falls back to searchingProgram Files\PostgreSQL.Linux (Debian/Ubuntu)
SQLite
sudo apt-get install unixodbc libsqliteodbcnpm ci(skip if already done)npx playwright test tests/panes/connections/No server, no manual database creation -- the driver just opens a file the suite creates itself.
PostgreSQL
sudo apt-get install unixodbc odbc-postgresql postgresql(skippostgresqlif a server is already installed -- only the binaries are needed, the service can stay stopped)npm ci(skip if already done)npx playwright test tests/panes/connections/The suite starts and stops its own throwaway server -- you never run
systemctl start postgresqlyourself.Fedora
SQLite
sudo dnf install -y unixODBC unixODBC-devel sqlite-devel gcc make tarsqliteodbccrashes R at runtime):npm ci(skip if already done)npx playwright test tests/panes/connections/PostgreSQL
sudo dnf install -y --allowerasing unixODBC unixODBC-devel postgresql-odbc gcc make tar(addpostgresql-serverif no server binaries exist yet)npm ci(skip if already done)npx playwright test tests/panes/connections/RHEL / Rocky
Same as Fedora, but drop
--allowerasing(Fedora-only, for a container-image conflict) -- and note there's no packagedsqliteodbcat all here either, so the same source-build steps apply.If both drivers are installed for a platform, the same command run in either section exercises both engines; a target skips with a reason if its driver isn't found.
ronblum commentedon Aug 28, 2026
Completed by #18648 .
(The link to #12262 was a mistake.)