Skip to content
This repository was archived by the owner on Mar 20, 2024. It is now read-only.

Commit 5ad2917

Browse files
authored
Merge pull request #60 from CaerusKaru/appref
fix(preboot): DOM not rendering on browser refresh
2 parents fe313da + 2437288 commit 5ad2917

9 files changed

+196
-226
lines changed

integration/e2e/e2e.browser.spec.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,40 @@
1-
import { browser, element, by } from 'protractor';
1+
import {browser, $} from 'protractor';
22
import { loadServerView, loadClientView } from './e2e.utils';
33

44
describe('e2e test preboot', function () {
55

66
it('should validate server view', function () {
77
loadServerView()
8-
.then(() => element(by.css('h1')).getText())
8+
.then(() => $('h1').getText())
99
.then(text => expect(text).toEqual('server view'));
1010
});
1111

1212
it('should validate basic client view', function () {
1313
loadServerView()
1414
.then(() => loadClientView())
15-
.then(() => element(by.css('h1')).getText())
15+
.then(() => $('h1').getText())
1616
.then(text => expect(text).toEqual('client view'));
1717
});
1818

1919
it('should validate typing input to a text box', function () {
2020
const input = 'foo man choo';
2121

2222
loadServerView()
23-
.then(() => element(by.css('#myTextBox')).click())
23+
.then(() => $('#myTextBox').click())
2424
.then(() => browser.actions().sendKeys(input).perform())
2525
.then(() => loadClientView())
26-
.then(() => element(by.css('#myTextBox')).getAttribute('value'))
26+
.then(() => $('#myTextBox').getAttribute('value'))
2727
.then(actual => expect(actual).toEqual(input));
2828
});
2929

3030
it('should validate choosing from a select', function () {
3131
const expected = 'foo';
3232

3333
loadServerView()
34-
.then(() => element(by.css('#mySelect')).click())
35-
.then(() => element(by.css('#myVal')).click())
34+
.then(() => $('#mySelect').click())
35+
.then(() => $('#myVal').click())
3636
.then(() => loadClientView())
37-
.then(() => element(by.css('#mySelect')).element(by.css('option:checked')).getText())
37+
.then(() => $('#mySelect').$('option:checked').getText())
3838
.then(actual => expect(actual).toEqual(expected));
3939
});
4040
});

integration/npm-shrinkwrap.json

Lines changed: 18 additions & 18 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)