Skip to content

Commit

Permalink
normalizing test unicodes
Browse files Browse the repository at this point in the history
  • Loading branch information
2amjsouza committed Dec 7, 2023
1 parent 814c4eb commit 36ad0ac
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions tests/laravel-functional/BladeComponentCest.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,16 +70,18 @@ public function testQrCodeComponentSimpleText(FunctionalTester $I)
{
$I->wantTo('Blade Component: Assert simple text QR Code creation');
$I->amOnRoute('app.blade');
$qrCode = file_get_contents(codecept_data_dir('blade/qrcode-blade.png'));

$qrCode = $this->normalizeString(file_get_contents(codecept_data_dir('blade/qrcode-blade.png')));

$I->seeInSource(base64_encode($qrCode));
}

public function testQrCodeComponentWithImage(FunctionalTester $I)
{
$I->wantTo('Blade Component: Assert QR Code with Logo creation');
$I->amOnRoute('app.logo');
$qrCode = file_get_contents(codecept_data_dir('blade/qrcode-logo.png'));
$qrCode2 = file_get_contents(codecept_data_dir('blade/qrcode-logo2.png'));
$qrCode = $this->normalizeString(file_get_contents(codecept_data_dir('blade/qrcode-logo.png')));
$qrCode2 = $this->normalizeString(file_get_contents(codecept_data_dir('blade/qrcode-logo2.png')));
$I->seeInSource(base64_encode($qrCode));
$I->seeInSource(base64_encode($qrCode2));
}
Expand All @@ -88,8 +90,8 @@ public function testQrCodeComponentWithPath(FunctionalTester $I)
{
$I->wantTo('Blade Component: Assert QR Code with Path Style creation');
$I->amOnRoute('app.path');
$qrCodeDots = file_get_contents(codecept_data_dir('blade/qrcode-dots.png'));
$qrCodeRounded = file_get_contents(codecept_data_dir('blade/qrcode-rounded.png'));
$qrCodeDots = $this->normalizeString(file_get_contents(codecept_data_dir('blade/qrcode-dots.png')));
$qrCodeRounded = $this->normalizeString(file_get_contents(codecept_data_dir('blade/qrcode-rounded.png')));
$I->seeInSource(base64_encode($qrCodeDots));
$I->seeInSource(base64_encode($qrCodeRounded));
}
Expand All @@ -98,8 +100,8 @@ public function testQrCodeComponentWithColors(FunctionalTester $I)
{
$I->wantTo('Blade Component: Assert QR Code with Colors creation');
$I->amOnRoute('app.colors');
$qrCodeBackground = file_get_contents(codecept_data_dir('blade/qrcode-background.png'));
$qrCodeForeground = file_get_contents(codecept_data_dir('blade/qrcode-foreground.png'));
$qrCodeBackground = $this->normalizeString(file_get_contents(codecept_data_dir('blade/qrcode-background.png')));
$qrCodeForeground = $this->normalizeString(file_get_contents(codecept_data_dir('blade/qrcode-foreground.png')));
$I->seeInSource(base64_encode($qrCodeBackground));
$I->seeInSource(base64_encode($qrCodeForeground));
}
Expand Down

0 comments on commit 36ad0ac

Please sign in to comment.