Uploaded June 2025 | Updated September 2026, 1 week ago
This video shows my Copilot instructions file that helps review the code both locally in VSCode and at github.com when requesting a copilot review. In my specific case, the review ensures that all front-end elements showing application data, like a username have meaningful "data-testid" attributes following the glebbahmutov.com/blog/how-i-add-test-ids advice.
Find more Copilot tips and tricks in my course at https://cypress.tips/courses
This video shows my Copilot instructions file that helps review the code both locally in VSCode and at github.com when requesting a copilot review. In my specific case, the review ensures that all front-end elements showing application data, like a username have meaningful "data-testid" attributes following the glebbahmutov.com/blog/how-i-add-test-ids advice.
Find more Copilot tips and tricks in my course at https://cypress.tips/courses



![Confirm Sorted Attributes
If you need to get an attribute from each DOM element, and you dont care about the order, you should compare sorted arrays. This video shows how to grab a data-... attribute using plain Cypress syntax and cypress-map plugins. Find the full recipe at https://glebbahmutov.com/cypress-examples Here is the cypress-map solution
// the expected SKU numbers
const skus = [00991C, 00100C, 00500A, 0044B].sort()
cy.get(#purchases li)
.map(dataset.sku)
.invoke(sort)
.print()
.should(deep.equal, skus) Confirm Sorted Attributes](https://i.ytimg.com/vi/sVb5MU2AkqE/mqdefault.jpg)






