Skip to content

Commit 2baec65

Browse files
committed
Updated readme to mention manual test suite, and bumped timeouts on manual test items.
1 parent 2b458a3 commit 2baec65

File tree

2 files changed

+19
-9
lines changed

2 files changed

+19
-9
lines changed

README.md

+10
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,16 @@ grunt test
4646
grunt build
4747
```
4848

49+
In addition to the automated test suite, there is an additional manual test suite that ensures that the
50+
$firebaseSimpleLogin service is working properly with auth providers. These tests are run using karma with the following command:
51+
52+
```bash
53+
karma start tests/manual_karma.conf.js
54+
```
55+
56+
Note that you must click "Close this window", login to Twitter, etc. when
57+
prompted in order for these tests to complete successfully.
58+
4959
License
5060
-------
5161
[MIT](http://firebase.mit-license.org).

tests/manual/auth.spec.js

+9-9
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ describe("AngularFireAuth Test Suite", function() {
3939
$timeout.flush();
4040
} catch(err) {}
4141
return eventsToComplete == 0;
42-
}, message, timeout ? timeout : 100);
42+
}, message, timeout ? timeout : 2000);
4343
}
4444
}
4545

@@ -87,7 +87,7 @@ describe("AngularFireAuth Test Suite", function() {
8787
off();
8888
});
8989

90-
waiter.wait("email login failure", 1000);
90+
waiter.wait("email login failure");
9191
});
9292

9393
//Ensure that getUserInfo gives us a null if we're logged out.
@@ -179,7 +179,7 @@ describe("AngularFireAuth Test Suite", function() {
179179
});
180180
});
181181

182-
waiter.wait("email login success", 1000);
182+
waiter.wait("email login success");
183183
});
184184

185185
it("getCurrentUser for logged-in state", function() {
@@ -213,7 +213,7 @@ describe("AngularFireAuth Test Suite", function() {
213213
off();
214214
});
215215

216-
waiter.wait("get user info after logout", 1000);
216+
waiter.wait("get user info after logout");
217217
});
218218

219219
//Ensure we properly handle errors on account creation.
@@ -234,7 +234,7 @@ describe("AngularFireAuth Test Suite", function() {
234234
off();
235235
});
236236

237-
waiter.wait("failed account creation", 1000);
237+
waiter.wait("failed account creation");
238238
});
239239

240240
//Test account creation.
@@ -257,7 +257,7 @@ describe("AngularFireAuth Test Suite", function() {
257257
waiter.done("getuser");
258258
});
259259

260-
waiter.wait("account creation with noLogin", 2000);
260+
waiter.wait("account creation with noLogin", 1600);
261261
});
262262

263263
//Test logging into newly created user.
@@ -348,7 +348,7 @@ describe("AngularFireAuth Test Suite", function() {
348348
expect(true).toBe(false); //die
349349
});
350350

351-
waiter.wait("removeuser fail and success", 1000);
351+
waiter.wait("removeuser fail and success");
352352
});
353353

354354
it("Email: reset password", function() {
@@ -367,6 +367,6 @@ describe("AngularFireAuth Test Suite", function() {
367367
expect(true).toBe(false);
368368
});
369369

370-
waiter.wait("resetpassword fail and success", 1000);
370+
waiter.wait("resetpassword fail and success");
371371
});
372-
});
372+
});

0 commit comments

Comments
 (0)