Skip to content

Commit

Permalink
Add test to ui literals with longer xpath
Browse files Browse the repository at this point in the history
  • Loading branch information
thiagodp committed Jun 16, 2018
1 parent ce2e79f commit 7d83417
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
7 changes: 7 additions & 0 deletions __tests__/nlp/NLPTest.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,13 @@ describe( 'NLPTest', () => {
);
} );

it( 'xpath with brackets, quotes, at', () => {
recogLiteral(
'<//*[@id="event-1684412635"]/span[2]/a>',
'//*[@id="event-1684412635"]/span[2]/a'
);
} );

} );


Expand Down
3 changes: 3 additions & 0 deletions dist/__tests__/nlp/NLPTest.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,9 @@ describe('NLPTest', () => {
it('long, escaped CSS selectors', () => {
recogLiteral(' <#js-repo-pjax-container \> div.container.new-discussion-timeline.experiment-repo-nav \> div.repository-content \> div.release-show \> div \> div.release-body.commit.open.float-left \> div.my-4 \> h2>', '#js-repo-pjax-container \> div.container.new-discussion-timeline.experiment-repo-nav \> div.repository-content \> div.release-show \> div \> div.release-body.commit.open.float-left \> div.my-4 \> h2');
});
it('xpath with brackets, quotes, at', () => {
recogLiteral('<//*[@id="event-1684412635"]/span[2]/a>', '//*[@id="event-1684412635"]/span[2]/a');
});
});
describe('does not recognize', () => {
it('number', () => {
Expand Down

0 comments on commit 7d83417

Please sign in to comment.