Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
stacey-gammon committed May 28, 2020
1 parent 4ddbf79 commit fb7fc46
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
3 changes: 1 addition & 2 deletions test/examples/bfetch_explorer/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,12 @@ import { FtrProviderContext } from '../../functional/ftr_provider_context';
// eslint-disable-next-line import/no-default-export
export default function ({ getService, getPageObjects, loadTestFile }: FtrProviderContext) {
const browser = getService('browser');
const appsMenu = getService('appsMenu');
const PageObjects = getPageObjects(['common', 'header']);

describe('bfetch explorer', function () {
before(async () => {
await browser.setWindowSize(1300, 900);
await PageObjects.common.navigateToApp('bfetch-explorer');
await PageObjects.common.navigateToApp('bfetch-explorer', { insertTimestamp: false });
});

loadTestFile(require.resolve('./batched_function'));
Expand Down
2 changes: 0 additions & 2 deletions test/examples/state_sync/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,10 @@ export default function ({
loadTestFile,
}: PluginFunctionalProviderContext) {
const browser = getService('browser');
const PageObjects = getPageObjects(['common']);

describe('state sync examples', function () {
before(async () => {
await browser.setWindowSize(1300, 900);
await PageObjects.common.navigateToApp('settings');
});

loadTestFile(require.resolve('./todo_app'));
Expand Down
6 changes: 4 additions & 2 deletions test/examples/state_sync/todo_app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export default function ({ getService, getPageObjects }: PluginFunctionalProvide

before(async () => {
base = await PageObjects.common.getHostPort();
await PageObjects.common.navigateToApp(appId);
await PageObjects.common.navigateToApp(appId, { insertTimestamp: false });
});

it('links are rendered correctly and state is preserved in links', async () => {
Expand Down Expand Up @@ -118,7 +118,9 @@ export default function ({ getService, getPageObjects }: PluginFunctionalProvide

describe('TODO app with hash history ', async () => {
before(async () => {
await PageObjects.common.navigateToApp('stateContainersExampleHashHistory');
await PageObjects.common.navigateToApp('stateContainersExampleHashHistory', {
insertTimestamp: false,
});
});

it('Links are rendered correctly and state is preserved in links', async () => {
Expand Down

0 comments on commit fb7fc46

Please sign in to comment.