Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Task] Add data-attributes #334

Open
Elizaveta1105 opened this issue Jun 14, 2023 · 1 comment
Open

[Task] Add data-attributes #334

Elizaveta1105 opened this issue Jun 14, 2023 · 1 comment

Comments

@Elizaveta1105
Copy link

Elizaveta1105 commented Jun 14, 2023

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
Copy link
Collaborator

lyubov-voloshko commented Jun 19, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants