rocket-admin / rocketadmin

Launch admin panel in under 5 minutes
https://rocketadmin.com
Other
88 stars 8 forks source link

[Task] Add data-attributes #334

Open Elizaveta1105 opened 1 year ago

Elizaveta1105 commented 1 year ago

P.S: For all test connections test-ids should be added as shown here (whole list, every table item, widgets)

Image

Alerts. there are 3 alerts which front end might throw:

  1. data-test-id="alert-not-configured" when Settings or Widgets are not setup; 2.data-test-id="alert-no-primary-keys" when table doesn't have primary keys;
  2. data-test-id="alert-widgets-warning" when something wrong with widgets. and 1 alert for errors from server: data-test-id="alert-server-error"

List of tables — data-test-id="tables-list", each item — data-test-id="table-{{tableName}}-list-item",

Image Image

data-test-id="login-header-link", data-test-id="registration-header-link" data-test-id="login-email-input" data-test-id="login-password-input" data-test-id="forgot-password-link" data-test-id="login-button" data-test-id="login-google-button"

Image

right now Upgrade button might work in 2 scenarios: data-test-id="upgrade-stripe-link" — if user have already subscribed, it redirects them directly to Stripe account; data-test-id="upgrade-local-link" — if user whats to subscribe for the first time, it redirects then on our page with plans. But we are going to change it and make switching between plans from our pages. So maybe it's better to postpone to test this payment thing.

data-test-id="logout-button" data-test-id="add-connection-button" data-test-id="{{connectionId}}-test-connection-list-item"

Image

data-test-id="dashboard-tab", data-test-id="audit-tab", data-test-id="users-tab", data-test-id="edit-db-tab", data-test-id="connection-settings-tab"

Image

data-test-id="connections-list-header-link", data-test-id="account-header-link"

Image

data-test-id="user-name-input", data-test-id="save-user-name-button", data-test-id="change-user-email-button", data-test-id="change-user-password-link".

lyubov-voloshko commented 1 year ago
image

Connection page might show 2 types of banners:

  1. data-test-id="connection-server-error-banner" — server error;
  2. data-test-id="no-tables-error-banner" — everything might be ok with credentials and connection itself, but if there are no tables in database, there is nothing to work with... user has to create tables on their side. This banner appears when i receive empty array for the left sidebar.