/
githubmirror
/
angular
Обзор
Документация
Войти
/
githubmirror
/
angular
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
integration/platform-server-hydration/e2e/src/app.e2e-spec.ts
30 строк
933 B
Alan Agius
build: bump `@angular/ssr` to `20.2.0-rc.1` (#63176)
15 авг 2025, 10:44
15 авг 2025, 10:44
e7a3452
Код
Авторство
О чём код?
import {browser, by, element} from 'protractor'; import {bootstrapClientApp, navigateTo, verifyNoBrowserErrors} from './util'; describe('App E2E Tests', () => { beforeEach(async () => { // Don't wait for Angular since it is not bootstrapped automatically. await browser.waitForAngularEnabled(false); // Load the page without waiting for Angular since it is not bootstrapped automatically. await navigateTo(''); }); afterEach(async () => { // Make sure there were no client side errors. await verifyNoBrowserErrors(); }); it('should reply click event', async () => { const divElement = element(by.css('#divElement')); expect(await divElement.getText()).toContain('click not triggered'); // Trigger click await divElement.click(); // Bootstrap client application await bootstrapClientApp(); expect(await divElement.getText()).toContain('click triggered'); }); });