Skip to content

Commit

Permalink
test: update selector
Browse files Browse the repository at this point in the history
  • Loading branch information
EnixCoda committed Jan 16, 2025
1 parent 3e6e043 commit 25a296d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion __tests__/selectors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@ export const selectors = {
github: {
breadcrumbFileName: `[data-testid="breadcrumbs-filename"]`,
fileContent: 'textarea[aria-label="file content"]',
commitLinks: `li[data-testid="commit-row-item"] [data-testid="list-view-item-title-container"] a[href*="/commit/"]`,
commitLinks: [
`li[data-testid="commit-row-item"] [data-testid="list-view-item-title-container"] a[href*="/commit/"]`,
`li[data-testid="commit-row-item"] h4 a[href*="/commit/"]`,
].join(),
// assume title contains `.` is file item
fileListItemFileLinks: `table[aria-labelledby="folders-and-files"] tr.react-directory-row td.react-directory-row-name-cell-large-screen .react-directory-filename-column .react-directory-truncate a[aria-label$="(File)"]`,
fileListItemLinkOf: (name: string) =>
Expand Down

0 comments on commit 25a296d

Please sign in to comment.