File tree Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change 81
81
assertPasswordWasHashedAndSaved ();
82
82
});
83
83
84
+ test ('users see the their avatar ' , function () {
85
+ $ this ->login ();
86
+
87
+ $ this ->visit ('/settings ' )
88
+ ->see ('<img src="https://unavatar.now.sh/github/johndoe?fallback=http%3A%2F%2Flocalhost%2Fimages%2Fuser.svg" alt="John Doe" class="rounded-full text-gray-500 h-32 w-32 mt-4"> ' );
89
+ });
90
+
91
+ test ('users see the default Laravel avatar ' , function () {
92
+ $ this ->login ([
93
+ 'github_username ' => null ,
94
+ ]);
95
+
96
+ $ this ->visit ('/settings ' )
97
+ ->see ('<img src="http://localhost/images/laravel.png" alt="John Doe" class="filter grayscale"> ' );
98
+ });
99
+
84
100
test ('users cannot update their password when it has been compromised in data leaks ' , function () {
85
101
$ this ->login ();
86
102
You can’t perform that action at this time.
0 commit comments