2023-10-13 16:54:19 -07:00
|
|
|
/**
|
|
|
|
|
* @license
|
|
|
|
|
* Copyright Google LLC All Rights Reserved.
|
|
|
|
|
*
|
|
|
|
|
* Use of this source code is governed by an MIT-style license that can be
|
2024-09-20 09:23:15 -06:00
|
|
|
* found in the LICENSE file at https://angular.dev/license
|
2023-10-13 16:54:19 -07:00
|
|
|
*/
|
|
|
|
|
|
2025-06-26 18:59:19 +00:00
|
|
|
import {openBrowser, verifyNoBrowserErrors} from '../../../utilities/index';
|
2023-10-13 16:54:19 -07:00
|
|
|
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');
|
|
|
|
|
});
|
|
|
|
|
});
|