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

chore(website): fix old tests and add new ones for API page upgrades #2308

Closed
wants to merge 2 commits into from

Conversation

sjelin
Copy link
Contributor

@sjelin sjelin commented Jul 7, 2015

No description provided.

@@ -133,4 +133,11 @@ describe('Api', function() {
expect(browser.getCurrentUrl()).
toMatch(/api\?view=webdriver.WebDriver.prototype.executeAsyncScript/);
});

it('should sort the menu to put webdriver docs next to the relavant ' +
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: relevant.

Why don't we just assert expect(apiPage.getAdultNmaes()).toBe(['a', 'b', ..., 'browser', 'webdriver.WebDriver', ..., 'y', 'z'])
So we can assert all the orders?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If the files were arranged differently the location of browser and by in the docs might be switched, but that shouldn't break the tests. This test is designed to make sure that webdriver.WebDriver comes directly after browser, since that's how the inheritance works, but not care about the absolute order of everything.

@hankduan
Copy link
Contributor

LGTM

@sjelin
Copy link
Contributor Author

sjelin commented Jul 13, 2015

Merged in at 822749b

@sjelin sjelin closed this Jul 13, 2015
@sjelin sjelin deleted the test-toc branch November 9, 2015 22:41
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants