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

Commit ae28f99

Browse files
author
jwngr
committed
Updates from Kato's code review
1 parent 7bdc129 commit ae28f99

File tree

8 files changed

+13
-12
lines changed

8 files changed

+13
-12
lines changed

tests/protractor/chat/chat.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
</head>
1818

1919
<body ng-controller="ChatCtrl">
20-
<!-- Firebase push ID where data is stored -->
20+
<!-- Firebase push ID where data is stored (used by the test spec to know where data is stored) -->
2121
<p id="pushId"></p>
2222

2323
<!-- Clear Firebase button -->

tests/protractor/chat/chat.spec.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,10 @@ describe('Chat App', function () {
3737

3838
beforeEach(function (done) {
3939
if (!isPageLoaded) {
40+
isPageLoaded = true;
41+
4042
// Navigate to the chat app
4143
browser.get('chat/chat.html').then(function() {
42-
isPageLoaded = true;
43-
4444
// Get the random push ID where the data is being stored
4545
return $('#pushId').getText();
4646
}).then(function(pushId) {

tests/protractor/priority/priority.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
</head>
1818

1919
<body ng-controller="PriorityCtrl">
20-
<!-- Firebase push ID where data is stored -->
20+
<!-- Firebase push ID where data is stored (used by the test spec to know where data is stored) -->
2121
<p id="pushId"></p>
2222

2323
<!-- Clear Firebase button -->

tests/protractor/priority/priority.spec.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,10 @@ describe('Priority App', function () {
3737

3838
beforeEach(function (done) {
3939
if (!isPageLoaded) {
40+
isPageLoaded = true;
41+
4042
// Navigate to the priority app
4143
browser.get('priority/priority.html').then(function() {
42-
isPageLoaded = true;
43-
4444
// Get the random push ID where the data is being stored
4545
return $('#pushId').getText();
4646
}).then(function(pushId) {

tests/protractor/tictactoe/tictactoe.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
</head>
1818

1919
<body ng-controller="TicTacToeCtrl">
20-
<!-- Firebase push ID where data is stored -->
20+
<!-- Firebase push ID where data is stored (used by the test spec to know where data is stored) -->
2121
<p id="pushId"></p>
2222

2323
<!-- Reset Firebase button -->

tests/protractor/tictactoe/tictactoe.spec.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,10 @@ describe('TicTacToe App', function () {
3838

3939
beforeEach(function (done) {
4040
if (!isPageLoaded) {
41+
isPageLoaded = true;
42+
4143
// Navigate to the tictactoe app
4244
browser.get('tictactoe/tictactoe.html').then(function() {
43-
isPageLoaded = true;
44-
4545
// Get the random push ID where the data is being stored
4646
return $('#pushId').getText();
4747
}).then(function(pushId) {
@@ -99,6 +99,7 @@ describe('TicTacToe App', function () {
9999
browser.get('tictactoe/tictactoe.html?pushId=' + firebaseRef.key()).then(function() {
100100
// Wait for AngularFire to sync the initial state
101101
sleep();
102+
sleep();
102103

103104
// Make sure the board has 9 cells
104105
expect(cells.count()).toBe(9);

tests/protractor/todo/todo.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919
<body ng-controller="TodoCtrl">
2020
<div>
21-
<!-- Firebase push ID where data is stored -->
21+
<!-- Firebase push ID where data is stored (used by the test spec to know where data is stored) -->
2222
<p id="pushId"></p>
2323

2424
<!-- Clear Firebase button -->

tests/protractor/todo/todo.spec.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,10 @@ describe('Todo App', function () {
3636

3737
beforeEach(function (done) {
3838
if (!isPageLoaded) {
39+
isPageLoaded = true;
40+
3941
// Navigate to the todo app
4042
browser.get('todo/todo.html').then(function() {
41-
isPageLoaded = true;
42-
4343
// Get the random push ID where the data is being stored
4444
return $('#pushId').getText();
4545
}).then(function(pushId) {

0 commit comments

Comments
 (0)