diff options
author | Maurício Meneghini Fauth <mauricio@fauth.dev> | 2021-10-30 23:23:36 +0300 |
---|---|---|
committer | Maurício Meneghini Fauth <mauricio@fauth.dev> | 2021-10-30 23:23:36 +0300 |
commit | 18c8a7d160a06bcdc2218a591e05824eec1d950c (patch) | |
tree | adb334bad51bdb2df377efe1cd649cbb9cb5ed8e /test | |
parent | e8f57353f5914b24f784950cedb3e76f22e31921 (diff) |
Change create table form to use Bootstrap's card
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
Diffstat (limited to 'test')
-rw-r--r-- | test/selenium/Database/OperationsTest.php | 2 | ||||
-rw-r--r-- | test/selenium/Table/CreateTest.php | 11 |
2 files changed, 7 insertions, 6 deletions
diff --git a/test/selenium/Database/OperationsTest.php b/test/selenium/Database/OperationsTest.php index fdcf2cca61..de4d7d2627 100644 --- a/test/selenium/Database/OperationsTest.php +++ b/test/selenium/Database/OperationsTest.php @@ -64,7 +64,7 @@ class OperationsTest extends TestBase $new_db_name = $this->databaseName . 'rename'; - $this->scrollIntoView('create_table_form_minimal'); + $this->scrollIntoView('createTableMinimalForm'); $this->byCssSelector('form#rename_db_form input[name=newname]') ->sendKeys($new_db_name); diff --git a/test/selenium/Table/CreateTest.php b/test/selenium/Table/CreateTest.php index 16eda5b44e..54c67e8f2f 100644 --- a/test/selenium/Table/CreateTest.php +++ b/test/selenium/Table/CreateTest.php @@ -35,11 +35,12 @@ class CreateTest extends TestBase $this->waitAjax(); $this->waitAjax(); - $this->waitForElement('id', 'create_table_form_minimal'); - $this->byCssSelector('form#create_table_form_minimal input[name=table]')->sendKeys('test_table'); - $this->byName('num_fields')->clear(); - $this->byName('num_fields')->sendKeys('4'); - $this->byCssSelector('input[value=Go]')->click(); + $this->waitForElement('id', 'createTableMinimalForm'); + $this->byId('createTableNameInput')->sendKeys('test_table'); + $numFieldsInput = $this->byId('createTableNumFieldsInput'); + $numFieldsInput->clear(); + $numFieldsInput->sendKeys('4'); + $this->byCssSelector('#createTableMinimalForm input[value=Create]')->click(); $this->waitAjax(); $this->waitForElement('name', 'do_save_data'); |