Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

testing the tests #124

Closed
wants to merge 5 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -151,13 +151,13 @@ jobs:

- name: Upload Screenshots
if: failure()
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
name: screenshots
path: tests/Browser/screenshots
- name: Upload Console Logs
if: failure()
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
name: console
path: tests/Browser/console
Expand Down
5 changes: 3 additions & 2 deletions resources/views/pages/auth/login.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ public function authenticate()
@endif

@if($showSocialProviderInfo)
<div class="p-4 text-sm rounded-md border bg-zinc-50 border-zinc-200">
<div class="p-4 text-sm border rounded-md bg-zinc-50 border-zinc-200">
<span>{{ str_replace('__social_providers_list__', implode(', ', $userSocialProviders), config('devdojo.auth.language.login.social_auth_authenticated_message')) }}</span>
<button wire:click="editIdentity" type="button" class="underline translate-x-0.5">{{ config('devdojo.auth.language.login.change_email') }}</button>
</div>
Expand All @@ -165,9 +165,10 @@ public function authenticate()

@if($showPasswordField)
<x-auth::elements.input :label="config('devdojo.auth.language.login.password')" type="password" wire:model="password" id="password" data-auth="password-input" />
<div class="flex justify-between items-center mt-6 text-sm leading-5">
<div class="flex items-center justify-between mt-6 text-sm leading-5">
<x-auth::elements.text-link href="{{ route('auth.password.request') }}" data-auth="forgot-password-link">{{ config('devdojo.auth.language.login.forget_password') }}</x-auth::elements.text-link>
</div>
<p>test</p>
@endif

<x-auth::elements.button type="primary" data-auth="submit-button" rounded="md" size="md" submit="true">
Expand Down
2 changes: 1 addition & 1 deletion routes/web.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
});

Route::middleware(['web'])->group(function () {
// Add social routes
// Add social redirect and callback routes
Route::get('auth/{driver}/redirect', [SocialController::class, 'redirect']);
Route::get('auth/{driver}/callback', [SocialController::class, 'callback']);

Expand Down
4 changes: 2 additions & 2 deletions src/Actions/TwoFactorAuth/GenerateQrCodeAndSecretKey.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class GenerateQrCodeAndSecretKey
public function __invoke($user): array
{

$google2fa = new Google2FA();
$google2fa = new Google2FA;
$secret_key = $google2fa->generateSecretKey();

$this->companyName = 'Auth';
Expand All @@ -38,7 +38,7 @@ public function __invoke($user): array
$writer = new Writer(
new ImageRenderer(
new RendererStyle(800),
new ImagickImageBackEnd()
new ImagickImageBackEnd
)
);

Expand Down
2 changes: 1 addition & 1 deletion src/AuthServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ public function register()

// Bind a singleton for the Google2FA service
$this->app->singleton(Google2FA::class, function ($app) {
return new Google2FA();
return new Google2FA;
});

// Register the DuskServiceProvider
Expand Down
2 changes: 1 addition & 1 deletion src/Traits/HasConfigs.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ private function arrayToObject($array)
return $array;
}

$object = new \stdClass();
$object = new \stdClass;
foreach ($array as $key => $value) {
$object->$key = $this->arrayToObject($value);
}
Expand Down
Loading