# Tell Copilot Where To Find Test Selectors

DevFeed: [Tell Copilot Where To Find Test Selectors](<https://devfeed.tech/articles/tell-copilot-where-to-find-test-selectors-28896.md>)

Original publisher: [Read original article](<https://glebbahmutov.com/blog/tell-copilot-where-to-find-test-selectors/>)

Author: Gleb Bahmutov

Published: 2025-09-22T04:00:00Z

Content type: tutorial

Language: en

Sources: [Gleb Bahmutov](<https://devfeed.tech/sources/gleb-bahmutov.md>)

Topics: [Cypress](<https://devfeed.tech/topics/cypress.md>), [selectors](<https://devfeed.tech/topics/selectors.md>), [GitHub Copilot](<https://devfeed.tech/topics/github-copilot.md>), [AI-assisted coding](<https://devfeed.tech/topics/ai-assisted-coding.md>), [Testing](<https://devfeed.tech/topics/testing.md>), [Visual Studio Code](<https://devfeed.tech/topics/visual-studio-code.md>)

Tags: [ai](<https://devfeed.tech/tags/ai.md>), [copilot](<https://devfeed.tech/tags/copilot.md>), [cypress](<https://devfeed.tech/tags/cypress.md>), [guide](<https://devfeed.tech/tags/guide.md>), [products](<https://devfeed.tech/tags/products.md>), [selectors](<https://devfeed.tech/tags/selectors.md>), [testing](<https://devfeed.tech/tags/testing.md>), [tests](<https://devfeed.tech/tags/tests.md>), [vscode](<https://devfeed.tech/tags/vscode.md>)

## AI overview

This tutorial explains how to use GitHub Copilot instruction files to help generate more precise Cypress end-to-end tests. It recommends pointing Copilot to application source files so it can identify stable, test-specific selectors instead of guessing generic or misleading selectors.

## Source excerpt

I have shown how to use Copilot instructions fil