From e65fdba5d13f8255380125b1b6f11ce1e90499b4 Mon Sep 17 00:00:00 2001 From: Jakub Vrana Date: Fri, 14 Mar 2025 06:18:42 +0100 Subject: [PATCH] Test PostgreSQL: enum --- tests/cocroachdb.html | 26 ++++++++++++++++++++++++++ tests/pgsql.html | 26 ++++++++++++++++++++++++++ 2 files changed, 52 insertions(+) diff --git a/tests/cocroachdb.html b/tests/cocroachdb.html index 7181c3e3..f8b4e960 100644 --- a/tests/cocroachdb.html +++ b/tests/cocroachdb.html @@ -156,6 +156,32 @@ verifyTextPresent1 item has been affected. + + + + + + + + + + + + + + + + + + + + + + + + +
Enum
openhttp://localhost:8080/adminer/?pgsql=localhost:26257&username=ODBC&db=adminer_test&ns=public
clicklink=Create type
typename=namealive
runScriptdocument.querySelector('[name="as"]').value = "AS ENUM('alive', 'deceased')"
clickAndWait//input[@value='Save']
clicklink=interprets
clicklink=Alter table
clickname=add[3]
typename=fields[4][field]alive
selectname=fields[4][type]label=alive
clickname=fields[4][null]
clickAndWait//input[@value='Save']
clicklink=alive
verifyTextPresent'alive', 'deceased'
chooseOkOnNextConfirmationDrop alive?
clickAndWait//input[@value='Drop']
verifyTextPresentcannot drop type
openhttp://localhost:8080/adminer/?pgsql=localhost:26257&username=ODBC&db=adminer_test&ns=public&edit=interprets&where%5Bid%5D=1
click//input[@value='deceased']
clickAndWait//input[@value='Save']
verifyTextPresentdeceased
+ diff --git a/tests/pgsql.html b/tests/pgsql.html index f6590509..f13b77e7 100644 --- a/tests/pgsql.html +++ b/tests/pgsql.html @@ -153,6 +153,32 @@
Explain
verifyTextPresent1 item has been affected.
+ + + + + + + + + + + + + + + + + + + + + + + + +
Enum
openhttp://localhost:8080/adminer/?pgsql=&username=ODBC&db=adminer_test&ns=public
clicklink=Create type
typename=namealive
runScriptdocument.querySelector('[name="as"]').value = "AS ENUM('alive', 'deceased')"
clickAndWait//input[@value='Save']
clicklink=interprets
clicklink=Alter table
clickname=add[3]
typename=fields[4][field]alive
selectname=fields[4][type]label=alive
clickname=fields[4][null]
clickAndWait//input[@value='Save']
clicklink=alive
verifyTextPresent'alive', 'deceased'
chooseOkOnNextConfirmationDrop alive?
clickAndWait//input[@value='Drop']
verifyTextPresentcannot drop type
openhttp://localhost:8080/adminer/?pgsql=&username=ODBC&db=adminer_test&ns=public&edit=interprets&where%5Bid%5D=1
click//input[@value='deceased']
clickAndWait//input[@value='Save']
verifyTextPresentdeceased
+
Explain