angular/modules/benchmarks/src/hydration/hydration.e2e-spec.ts
Joey Perrott 059fb06b9f build: migrate modules to use @rules_browsers protractor rules (#62342)
Use the protractor rules from `@rules_browsers` for the module directory.

PR Close #62342
2025-06-27 22:27:08 +00:00

28 lines
741 B
TypeScript

/**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.dev/license
*/
import {openBrowser, verifyNoBrowserErrors} from '../../../utilities/index';
import {$} from 'protractor';
describe('hydration benchmark', () => {
afterEach(verifyNoBrowserErrors);
it(`should render the table`, async () => {
openBrowser({
url: '',
ignoreBrowserSynchronization: true,
params: [
{name: 'cols', value: 5},
{name: 'rows', value: 5},
],
});
await $('#prepare').click();
await $('#createDom').click();
expect($('#table').getText()).toContain('0/0');
});
});