Skip to content
This repository has been archived by the owner on Apr 12, 2024. It is now read-only.

Commit

Permalink
test(docs): fix url matching on api e2e tests
Browse files Browse the repository at this point in the history
  • Loading branch information
petebacondarwin committed Sep 15, 2014
1 parent fb7e05c commit 5524439
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/app/e2e/api-docs/provider-pages.scenario.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ describe("provider pages", function() {
browser.get('index-debug.html#!/api/ng/provider/$compileProvider');
var serviceLink = element.all(by.css('ol.api-profile-header-structure li a')).first();
expect(serviceLink.getText()).toEqual('- $compile');
expect(serviceLink.getAttribute('href')).toMatch('api/ng/service/$compile');
expect(serviceLink.getAttribute('href')).toMatch(/api\/ng\/service\/\$compile/);
});

});
4 changes: 2 additions & 2 deletions docs/app/e2e/api-docs/service-pages.scenario.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ describe("service pages", function() {
browser.get('index-debug.html#!/api/ng/service/$compile');
var providerLink = element.all(by.css('ol.api-profile-header-structure li a')).first();
expect(providerLink.getText()).toEqual('- $compileProvider');
expect(providerLink.getAttribute('href')).toMatch('api/ng/provider/$compileProvider');
expect(providerLink.getAttribute('href')).toMatch(/api\/ng\/provider\/\$compileProvider/);

browser.get('index-debug.html#!/api/ng/service/$q');
providerLink = element.all(by.css('ol.api-profile-header-structure li a')).first();
expect(providerLink.getText()).not.toEqual('- $qProvider');
expect(providerLink.getAttribute('href')).not.toMatch('api/ng/provider/$compileProvider');
expect(providerLink.getAttribute('href')).not.toMatch(/api\/ng\/provider\/\$compileProvider/);
});

it("should show parameter defaults", function() {
Expand Down

0 comments on commit 5524439

Please sign in to comment.