rancher / qa-tasks

List of QA Backlog
1 stars 1 forks source link

[UI] VAI - Convert mock data into real backend data #1386

Open yonasberhe23 opened 2 months ago

yonasberhe23 commented 2 months ago

There are times that we need to mock a response to write deterministic e2e tests and to mock responses we need to provide data and sometimes we need a lot of data, for example, 100+ data points are required for pagination to be visible in the UI. Currently, we are storing all the required mock data in fixture files and those files can sometimes be up to 4000 lines long depending on the resource (see cypress/e2e/blueprints/explorer/cluster/events.js in the dashboard repo). Let's find a more efficient way of storing mock data.

UPDATE: Going to create real data instead of mock data which will resolve this issue ^ and so that we're testing against real data coming from the backend.

yonasberhe23 commented 1 month ago

UPDATE: we're now using the API to create large data sets (~100 resources) but still using mock data for test scenarios that require few/no data.