gray-kilobyte-89541
05/09/2023, 5:53 PMcolossal-table-38461
05/09/2023, 6:00 PMdamp-kangaroo-1521
05/10/2023, 10:21 AMadorable-smartphone-87280
05/10/2023, 1:17 PMbeforeEach
.lemon-holiday-89994
05/10/2023, 4:00 PMadorable-smartphone-87280
05/10/2023, 4:05 PMlemon-holiday-89994
05/10/2023, 4:32 PMgray-kilobyte-89541
05/10/2023, 5:27 PMlate-greece-72449
05/10/2023, 9:23 PMdata
object defined initially is taken and thus the element el
takes the value from that. However if you cy.log(data);
in your first it() you will see that you are getting the correct data after before. So I believe it is working as designed
So basically your object should be finalized before cypress test execution starts if you want your data.forEach to get the final changes, having it in before probably wont work
try moving the object assignment outside of before() directly to describe that should workswift-megabyte-13324
05/11/2023, 2:32 AMswift-megabyte-13324
05/11/2023, 3:51 AMswift-megabyte-13324
05/11/2023, 3:52 AMswift-megabyte-13324
05/11/2023, 3:56 AMmany-airline-45402
05/11/2023, 4:11 AMswift-megabyte-13324
05/11/2023, 4:31 AMmany-airline-45402
05/11/2023, 4:41 AMgithub-action
and a database in https://github.com/cypress-io/cypress-realworld-app/blob/develop/.github/workflows/main.yml for Ubuntu recording into Cypress Cloud.swift-megabyte-13324
05/11/2023, 4:44 AMmany-airline-45402
05/11/2023, 4:49 AMswift-megabyte-13324
05/11/2023, 4:49 AMmany-airline-45402
05/11/2023, 4:51 AMswift-megabyte-13324
05/11/2023, 4:55 AMswift-megabyte-13324
05/11/2023, 6:07 AMmany-airline-45402
05/11/2023, 11:12 AMgray-kilobyte-89541
05/11/2023, 11:35 AMswift-megabyte-13324
05/11/2023, 11:51 AMgray-kilobyte-89541
05/11/2023, 12:00 PMswift-megabyte-13324
05/11/2023, 12:04 PMswift-megabyte-13324
05/11/2023, 12:05 PMswift-megabyte-13324
05/11/2023, 1:01 PMswift-megabyte-13324
05/11/2023, 1:01 PM