ToolJet/cypress-tests/cypress/constants/texts/database.js
Mekhla Asopa 849f248b85
Updated database spec with export table feature (#8218)
* Added export table method

* Added bulk upload data method
2023-11-29 17:36:10 +05:30

89 lines
2.5 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

export const databaseText = {
allTableSubheader: "All tables",
doNotHaveTableText: "You don't have any tables yet.",
tablePageHeader: "Tables",
createNewTableHeader: "Create a new table",
tableNameLabel: "Table name",
addColumnHeader: "Add columns",
nameLabel: "Name",
typeLabel: "Type",
defaultLabel: "Default",
primaryKeyLabel: "Primary Key",
addMoreColumnsButton: " Add more columns",
editTableHeader: "Edit table",
idColumnHeader: "id",
noRecordsText: "You don't have any records yet.",
deleteRecordButton: "Delete records",
idColumnName: "id",
tableCreatedSuccessfullyToast: (tableName) => {
return `${tableName} created successfully`;
},
tableDeletedSuccessfullyToast: (tableName) => {
return `Table "${tableName}" deleted successfully`;
},
tableEditedSuccessfullyToast: (tableName) => {
return `${tableName} edited successfully`;
},
tableExistsToast: (tableName) => {
return `Table name already exists: ${tableName}`;
},
deleteRowToast: (tableName, rowNumber) => {
return `Deleted ${rowNumber} rows from table "${tableName}"`;
},
invalidErrorText: (value) => {
return `invalid input syntax for type integer: "${value}"`;
},
};
export const createNewColumnText = {
createNewColumnHeader: "Create a new column",
columnNameLabel: "Column name",
dataTypeLabel: "Data type",
defaultValueLabel: "Default value",
columnCreatedSuccessfullyToast: "Column created successfully",
};
export const createNewRowText = {
createNewRowHeader: "Create a new row",
serialDataTypeLabel: "SERIAL",
rowCreatedSuccessfullyToast: "Row created successfully",
};
export const filterText = {
filterText: " Filter",
operation: {
equals: "equals",
greaterThan: "greater than",
greaterThanEqual: "greater than or equal",
lessThan: "less than",
lessThanEqual: "less than or equal",
notEqual: "not equal",
like: "like",
ilike: "ilike",
match: "match",
imatch: "imatch",
in: "in",
},
};
export const sortText = {
sortByText: "Sort by",
order: {
ascending: "Ascending",
descending: "Descending",
},
};
export const editRowText = {
editRowHeader: "Edit a row",
selectRowToEditText: "Select a row to edit",
rowEditedSuccessfullyToast: "Row edited successfully",
};
export const bulkUploadDataText = {
bulkUploadbuttonText: "Bulk upload data",
templateHelperText:
"Download the template to add your data or format your file in the same as the template. ToolJet wont be able to recognise files in any other format.",
};